PDA

View Full Version : drawElements question



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

Thanks.

Bob
02-10-2004, 03: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.