| 71 | } |
| 72 | |
| 73 | void 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 | |
| 83 | void OglApp::redisplay() |
| 84 | { |
no outgoing calls