i have a rough overview To post data to screen => u need to have a surfaceflinger client handle and post your buffer contents to surfaceflinger, which composes final framebuffer to display on LCD. see if attached demo helps (source: http://people.debian.org.tw/~olv/surfaceflinger/ )
-- Regards, Deva www.bittoggler.com On Wed, Nov 17, 2010 at 1:05 PM, 袁堂夫 <[email protected]> wrote: > 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? > > -- > unsubscribe: > [email protected]<android-porting%[email protected]> > website: http://groups.google.com/group/android-porting > -- 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
surfaceflinger.demo.tar.gz
Description: GNU Zip compressed data

