iphone Programming Glossary: glbindframebuffer
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 the first image 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..
How do you activate multisampling in OpenGL ES on the iPhone? http://stackoverflow.com/questions/3340189/how-do-you-activate-multisampling-in-opengl-es-on-the-iphone you bind this multisample framebuffer render your scene then do the multisampling resolve into your main framebuffer glBindFramebuffer GL_READ_FRAMEBUFFER_APPLE msaaFramebuffer glBindFramebuffer GL_DRAW_FRAMEBUFFER_APPLE defaultFramebuffer glResolveMultisampleFramebufferAPPLE.. do the multisampling resolve into your main framebuffer glBindFramebuffer GL_READ_FRAMEBUFFER_APPLE msaaFramebuffer glBindFramebuffer GL_DRAW_FRAMEBUFFER_APPLE defaultFramebuffer glResolveMultisampleFramebufferAPPLE then bind your render buffer and present..
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..
Request a DepthBuffer in OpenGL ES for iPhone http://stackoverflow.com/questions/4361516/request-a-depthbuffer-in-opengl-es-for-iphone EAGLContext setCurrentContext context Create default framebuffer object. glGenFramebuffers 1 defaultFramebuffer glBindFramebuffer GL_FRAMEBUFFER defaultFramebuffer Create color render buffer and allocate backing store. glGenRenderbuffers 1 colorRenderbuffer.. EAGLContext setCurrentContext context Create default framebuffer object. glGenFramebuffers 1 defaultFramebuffer glBindFramebuffer GL_FRAMEBUFFER defaultFramebuffer Create color render buffer and allocate backing store. glGenRenderbuffers 1 colorRenderbuffer..
|