¡@

Home 

2014/10/15 ¤U¤È 10:12:20

iphone Programming Glossary: oldfbo

OpenGL ES render to texture, then draw texture

http://stackoverflow.com/questions/1649222/opengl-es-render-to-texture-then-draw-texture

variables GLuint textureFrameBuffer Texture2D texture To initialize the frame buffer and texture I'm doing this GLint oldFBO glGetIntegerv GL_FRAMEBUFFER_BINDING_OES oldFBO initWithData results in a white image on the device works fine in the simulator.. To initialize the frame buffer and texture I'm doing this GLint oldFBO glGetIntegerv GL_FRAMEBUFFER_BINDING_OES oldFBO initWithData results in a white image on the device works fine in the simulator texture Texture2D alloc initWithImage UIImage.. GL_FRAMEBUFFER_OES GL_FRAMEBUFFER_COMPLETE_OES NSLog @ incomplete glBindFramebufferOES GL_FRAMEBUFFER_OES oldFBO Now if I simply draw my scene to the screen as usual it works fine glClear GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT draw..