| 187 | } |
| 188 | |
| 189 | void 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 | |
| 196 | void OglApp::setShader(GpuShaderDescRcPtr & shaderDesc) |
| 197 | { |
no outgoing calls