View Full Version : drawElements question

02-10-2004, 01:19 AM
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.


02-10-2004, 02:01 AM
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.