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

Method updateImage

src/libutils/oglapphelpers/oglapp.cpp:73–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void OglApp::updateImage(const float * image)
74{
75 glActiveTexture(GL_TEXTURE0);
76 glBindTexture(GL_TEXTURE_2D, m_imageTexID);
77
78 const GLenum format = m_components == COMPONENTS_RGB ? GL_RGB : GL_RGBA;
79 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F_ARB, m_imageWidth, m_imageHeight, 0,
80 format, GL_FLOAT, &image[0]);
81}
82
83void OglApp::redisplay()
84{

Callers 2

applyGPUMethod · 0.80
UpdateImageTextureFunction · 0.80

Calls

no outgoing calls

Tested by 1

UpdateImageTextureFunction · 0.64