VBO without indices?

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.

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

Yes there is. glDrawArrays.