Help! glTexCoordPointer

For API glTexCoordPointer(GLint size,
GLenum type,
GLsizei stride,
const GLvoid * pointer), the specification explains pointer as : “Specifies a pointer to the first coordinate of the first element in the array. The initial value is 0.”

Could somebody give a detailed explanation about this pointer?

Thanks a lot.

Mike

It’s the address to an array containing the texture coord data, use it like this - &yourarray[0]

this is unless you are using a VBO, then the value should be 0.

Originally posted by zeoverlord:
[b] It’s the address to an array containing the texture coord data, use it like this - &yourarray[0]

this is unless you are using a VBO, then the value should be 0. [/b]
Well shouldn’t the VBO correct info be an byte offset into the array… Now if you are using interleaved arrays this would be important… Just clarifying this…