I use opengl es 2.0 to draw some picture,and create the FBOs,
but how to present the renderbuffer on the screen?
----------------------code like this
--------------------------------------------
glGenFramebuffers(1, &viewFramebuffer);
glGenRenderbuffers(1, &viewRenderbuffer);
glBindFramebuffer(GL_FRAMEBUFFER, viewFramebuffer);
glBindRenderbuffer(GL_RENDERBUFFER, viewRenderbuffer);
glRenderbufferStorage (GL_RENDERBUFFER, GL_RGB565,
g_WindowsWidth,
g_WindowsHeight);
glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
GL_RENDERBUFFER, viewRenderbuffer);
GLenum status=glCheckFramebufferStatus(GL_FRAMEBUFFER);
//draw something,like glTexImage
//but how to present the renderbuffer on the screen?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en