On Feb 19, 1:29 pm, "and.pradeep" <[email protected]> wrote: > I am writting opengl app using GLSurgfaceView given in API demos. > I create a rectangle and added texture but then drawframe in renderer > is called in a loop i,e it is redrawing it even if there is no > changes. so what should i do to? how to set background
It is normal when using OpenGL to draw the background every frame, because you have to redraw the whole screen every frame. If you want to skip drawing a frame because nothing has changed then you would need to modify GLSurfaceView. Perhaps you could could change the Renderer interface so that drawFrame returns a boolean, and if it returns false then skip the mEglHelper.swap() call. -- Jon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

