glColorPointer HELP!!!

Started by rasirdas, July 24, 2006, 10:28:17

Previous topic - Next topic

rasirdas

glColorPointer(int size, int type, int stride, long pointer_buffer_offset)


when using the above method,  how to pass the argument : pointer_buffer_offset, in other words, how to get the buffer pointer offset?

darkprophet

Are you using VBOs ? If so, then read this: http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/opengl/speedyvbo

If your using plain Vertex Arrays, then theres

glColorPointer(int size, int stride, FloatBuffer); stride is 0 in your case.

DP