¡@

Home 

2014/10/15 ¤U¤È 10:09:46

iphone Programming Glossary: gl_framebuffer

OpenGL ES 2d rendering into image

http://stackoverflow.com/questions/10455329/opengl-es-2d-rendering-into-image

GL_CLAMP_TO_EDGE glTexParameterf GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE glFramebufferTexture2D GL_FRAMEBUFFER GL_COLOR_ATTACHMENT0 GL_TEXTURE_2D CVOpenGLESTextureGetName renderTexture 0 and then you can just read directly from the..

How do I blend two textures with different co-ordinates in OpenGL ES 2.0 on iPhone?

http://stackoverflow.com/questions/12242443/how-do-i-blend-two-textures-with-different-co-ordinates-in-opengl-es-2-0-on-ipho

I used the following code.. Objective C code... void display EAGLContext setCurrentContext context glBindFramebuffer GL_FRAMEBUFFER targetFBO glUseProgram program glActiveTexture GL_TEXTURE2 glBindTexture GL_TEXTURE_2D textureTop glActiveTexture GL_TEXTURE3..

render to floating point texture under iOS

http://stackoverflow.com/questions/3850569/render-to-floating-point-texture-under-ios

GL_NEAREST assert GL_NO_ERROR glGetError this passes GLuint fboHandle glGenFramebuffers 1 fboHandle glBindFramebuffer GL_FRAMEBUFFER fboHandle glFramebufferTexture2D GL_FRAMEBUFFER GL_COLOR_ATTACHMENT0 GL_TEXTURE_2D textureHandle 0 assert GL_FRAMEBUFFER_COMPLETE.. GLuint fboHandle glGenFramebuffers 1 fboHandle glBindFramebuffer GL_FRAMEBUFFER fboHandle glFramebufferTexture2D GL_FRAMEBUFFER GL_COLOR_ATTACHMENT0 GL_TEXTURE_2D textureHandle 0 assert GL_FRAMEBUFFER_COMPLETE glCheckFramebufferStatus GL_FRAMEBUFFER.. fboHandle glFramebufferTexture2D GL_FRAMEBUFFER GL_COLOR_ATTACHMENT0 GL_TEXTURE_2D textureHandle 0 assert GL_FRAMEBUFFER_COMPLETE glCheckFramebufferStatus GL_FRAMEBUFFER this asserts This works fine when replacing GL_HALF_FLOAT_OES with GL_UNSIGNED_BYTE..

Request a DepthBuffer in OpenGL ES for iPhone

http://stackoverflow.com/questions/4361516/request-a-depthbuffer-in-opengl-es-for-iphone

setCurrentContext context Create default framebuffer object. glGenFramebuffers 1 defaultFramebuffer glBindFramebuffer GL_FRAMEBUFFER defaultFramebuffer Create color render buffer and allocate backing store. glGenRenderbuffers 1 colorRenderbuffer glBindRenderbuffer.. glGetRenderbufferParameteriv GL_RENDERBUFFER GL_RENDERBUFFER_HEIGHT framebufferHeight glFramebufferRenderbuffer GL_FRAMEBUFFER GL_COLOR_ATTACHMENT0 GL_RENDERBUFFER colorRenderbuffer if glCheckFramebufferStatus GL_FRAMEBUFFER GL_FRAMEBUFFER_COMPLETE.. GL_FRAMEBUFFER GL_COLOR_ATTACHMENT0 GL_RENDERBUFFER colorRenderbuffer if glCheckFramebufferStatus GL_FRAMEBUFFER GL_FRAMEBUFFER_COMPLETE NSLog @ Failed to make complete framebuffer object x glCheckFramebufferStatus GL_FRAMEBUFFER What..

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0

GL_CLAMP_TO_EDGE glTexParameterf GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE glFramebufferTexture2D GL_FRAMEBUFFER GL_COLOR_ATTACHMENT0 GL_TEXTURE_2D CVOpenGLESTextureGetName renderTexture 0 This pulls a pixel buffer from the pool associated..