PDA

View Full Version : glDrawElements



powerpad
05-26-2005, 12:30 PM
I use Vertexpointers and Normalpointers for drawing my objects the vertices are drawn correctly by the indices submitted to glDrawElements.

My question is whether glDrawElements uses the indices in the index array to access the normal array submitted by glNormalPointer?

If this is so I have to adjust my normal's table according to the vertex indices.

Bob
05-27-2005, 12:43 AM
The same index is used to index ALL enabled arrays.

powerpad
05-27-2005, 02:07 AM
tnx I figured that out yesterday and changed all my relevant code (lucky that it was not too much)