PDA

View Full Version : Help! glTexCoordPointer



qqca
06-27-2006, 04:26 PM
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

zeoverlord
06-27-2006, 07:50 PM
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.

Mars_999
06-27-2006, 10:17 PM
Originally posted by zeoverlord:
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. 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...