Hello.
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();
vb.put(tCoords).position(0);
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.