PDA

View Full Version : Vertex arrays / buffers / whatevers



Fugit
08-28-2000, 06:22 AM
Hi,
There's a glVertexPointer or something, but from what I can tell you only pass indices - what's the standard method (or if there's a standard extention that does it) for passing an array of verticies, texcoords, or whatever and indices to be drawn in one go...or is it faster to just compile it all into a display list (what I'm doing now).

Thanks

Siwko
08-28-2000, 12:00 PM
No, you don't have to use indices.

You can use glDrawArrays.

You pass it the type of primitive you want, the starting offset into the array (usually 0) and the number of elements (vertices, etc) you want drawn.

Siwko