drawElements question

Hi, probably a stupid question, but to what does the “number of elements” parameter specify in glDrawElements? I was sure it meant vertices, but I’m having trouble displaying traingle strips correctly and wondered if I should be putting in something else.


From MSDN.

When you call the glDrawElements function, it uses count sequential elements from indices to construct a sequence of geometric primitives.

So basically, it’s the number of indices in the index array.