LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: rasirdas on July 24, 2006, 10:28:17

Title: glColorPointer HELP!!!
Post by: rasirdas on July 24, 2006, 10:28:17
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?
Title: glColorPointer HELP!!!
Post by: darkprophet on July 24, 2006, 11:10:26
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