In the second time when I want to render, I will have to update the content in offscreen FBO? That would be re-writing line-2 and line-3 at a new position, removing line-1 and adding line-4. Suppose the first time I had below on display, My actual need is caption/ subtitle (which can be in scrolling mode) In OpenGL ES 2.0, you create a GLFRAMEBUFFER with the desired texture size. The first step is to create the off-screen texture. I got a suggestion to use FBO and bind the texture created to the main default framebuffer. The UI elements are drawn at the native resolution. Because I am working on subtitle/captions wherein scrolling of the caption will have to repeat the rendering of lines till those go out of caption-display area. Note: I am using OpenGLES 2.0, hence I cannot use calls such as glDrawPixels, etc.īasically my requirement is to have off-screen buffering. I did my due diligence but could not get any example. In all the examples, including this one, I don't see details on how to write the data, retrieved through glReadPixels call, onto default display framebuffer. I read details about FBO and got a fair idea about off-screen buffering. Sorry if I am asking something which is already available.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |