1 2 3 4
| ByteBuffer bb = ByteBuffer.allocateDirect(...).order(ByteOrder.nativeOrder()); bb.rewind(); FloatBuffer fb = bb.asFloatBuffer(); |
what i want( don't know if it's possible is the following ):
at position 4 ( coz of the first integer in the buffer) my vertex positions starts with goes from 4 till (sizeOf(float)*4*numPoints),
and then i want to read in the byte values that are stored after the vertices. I don't want to use getFloat() coz i want to give the buffers directly to opengl
but is it posible, coz i read the the method asFloatBuffer for instance read from 'position' to the end of the buffer