PDA

View Full Version : vertexarrays and strips



sb
03-20-2001, 11:25 PM
Is there a point in using triangle/quad strips when using vertex arrays?

If I do I cant draw my hole scene in one gldrawelements. (right?)

Bob
03-21-2001, 02:44 AM
Strips are generally faster than raw polygons. And the point in using glDrawElements is not to draw the whole scene in one call, but rather to draw as much as possible in one call.

sb
03-21-2001, 05:07 AM
Then if I have a grid like surface is it better to draw it row by row with gldrawelements and strips then the hole thing with gldrawelements and gl_triangles

Bob
03-21-2001, 12:29 PM
If you have a simple grid, you can draw the whole grid in one triangle/quad strip. Take a piece of paper and a pencil and try to figure it out how http://www.opengl.org/discussion_boards/ubb/smile.gif .

But anyways, in that case, it might not be much difference, but I would guess a bunch of strips would be faster.

zed
03-21-2001, 12:48 PM
have a play around with the opengl benchmark program on my site (url in profile)