• Advertisement
Sign in to follow this  

Opengles 1.1 glBufferData Equivilant?

This topic is 1269 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts



I have a project that needs to run on opengles 1.1. I am talking 5 year old hardware.


I currently store the vertex information like this:

floatbuffer vb = ByteBuffer.allocateDirect(tCoords.length * size).order(ByteOrder.nativeOrder()).asFloatBuffer();


and I draw it like this:

gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vb);
gl.glDrawArrays(GL10.GL_TRIANGLES, 0, 6*bList.listCount);



In this case, am I sending the floatbuffer vb from cpu memory to gpu memory every frame?


Looking around the web, most tutorials seem to use glBufferData. I thing that glBufferData requires a higher version of opengles though.


Is there a way to send my floatbuffer to the GPU once and keep it there, if I am not doing it already? If it matters, I don't need to change the float data once it is sent, it is static, and there are a couple thousand verticies.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement