Better way to make the faces

Dear people,

Witch is the better way to calculate the faces, in quads or triangles ?

Thanks

Best regards

Kurt

If you mean by calculate render a geometry, u should use GL_TRIANGLE_STRIP or GL_QUAD_STRIP.

If not, i don’t understand you’r question :

Ok,

I know witch function I have to use, but witch of the ways will give me the best result ?

Thanks

Kurt

u can also use (if u have a good card) the vertex arrays. It send the values directly to the card and u can have good results.

U should test different ways because it depends of what u want to render.
If you just need geometries and static colors and static textures, u can use the vertex arrays.
If the colors and the texture are not static during your appli, use GL_TRIANGLE_STRIP…

Ok,

But using the vertex array, will I be able to render it ??? As I know, I can render a surface, just using quads or triangles…

The vertex array, that you are talking about, is the X,Y,Z data ??? or the vertex of the quads or triangles…

Thank you for the moment

Best regards

Kurt