PDA

View Full Version : VBO without indices?



Exoide
08-25-2010, 10:20 AM
Hi there,

I'm creating a VBO to draw a polygon.

My question is:

Can I create a VBO without indices (only vertices)?

Because I want to draw the polygon's lines in the order the vertices appear in the vertex buffer so the VBO's index buffer will be 0, 1, 2, 3, 4... and so on.

Maybe there's another function similar to glDrawElements() that draw the primitives in the order the vertices appear.

Thanks in advance.

Alfonse Reinheart
08-25-2010, 10:48 AM
Maybe there's another function similar to glDrawElements() that draw the primitives in the order the vertices appear.

Yes there is. glDrawArrays.