Skip to main content

Posts

Showing posts with the label opengl-es-2.0

Cylinder in OpenGL ES on iOS 5

I am pretty new in OpenGL ES and been searching the paste few days after some examples or tutorials about creating cylinders, but unfortunately without any luck! If anybody has some sample code or anything that might be of any use it would be highly appreciated. Thanks in advance.

Is there any alternative for GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT)?

I get a fill rate of about 30fps in my application. I know that GLES20.glClear() is used to clear the screen for every draw. If i comment it i get a fps of about 60fps. But the output is not as expected. I have a content to be redrawn for the whole screen in every frame. Is there any alternative where i can redraw the whole screen with out using the GLES20.glClear(). Please let me know if there is any way to play around with GLES20.glClear() to improve the performance?