Merge "emulator/opengl/emugen: Use templates to read values from stream." into studio-1.0-dev