MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / readImage

Method readImage

src/libutils/oglapphelpers/oglapp.cpp:189–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void OglApp::readImage(float * image)
190{
191 glReadBuffer(GL_COLOR_ATTACHMENT0);
192 const GLenum format = m_components == COMPONENTS_RGB ? GL_RGB : GL_RGBA;
193 glReadPixels(0, 0, m_imageWidth, m_imageHeight, format, GL_FLOAT, (GLvoid*)&image[0]);
194}
195
196void OglApp::setShader(GpuShaderDescRcPtr & shaderDesc)
197{

Callers 3

applyGPUMethod · 0.80
mainFunction · 0.80
ValidateImageTextureFunction · 0.80

Calls

no outgoing calls

Tested by 1

ValidateImageTextureFunction · 0.64