3Ducker
3Ducker

Reputation: 346

OpenGl: which is the best solution?

So, my question that what function shoud I use, what is the fastest, or which is the most prevalent solution.

The solution alternatives: -the vertex array -polygon by polygon -or another alternative

An object has triangles, quads and polygons which has more indices. But the vertex array I know can store only triangles, quads, or something like that. But how can I render the polygons? Is it right that I only render polygon by polygon the polygons wich has more indices? (I've heard the glMultiDrawElements, but it has similar data structure if I render poly by poly, isn't it?)

Or there's a good alternative I don't know?

Upvotes: 0

Views: 102

Answers (1)

Freaxy
Freaxy

Reputation: 93

You should convert the polygons to triangles and use a vertex buffer object.

Upvotes: 1

Related Questions