PDA

View Full Version : glDrawElements count question.



LostInTheWoods
01-21-2003, 08:25 AM
Im a little confused over the count parameter in the glDrawElements function. Say i am rendering 2 triangles, but i have an index of only needing 4 points. Would the count be, 2 for the number of triangles, 4 for the number of indexed points? Or 6 for the total number of points actualy rendered??? This is quite confusing to me, even though i know it shouldnt be.

Bob
01-21-2003, 08:48 AM
Count is the number of indices in the index array.