What''s the best way to draw hexagonals with OpenGL: 1) 1 GL_QUAD and 2 GL_TRIANGLEs ? 2) 6 GL_TRIANGLE_FANS ? 3) 1 GL_POLYGON with 7 vertices ? 4) Other? I''m creating a hex map and want to apply a texture image to it. Does the use of a texture influence choices above? Is there any way to apply a single texture to cover a set of polygons rather than 1 texture per polygon? Thanks for any replies.
Best way to draw hexes and texture them?
2 replies to this topic
Posted 20 June 2001 - 10:24 AM
Hmm.. I would say a triangle fan would work the best way, at least vertex wise. Texturing is the same in all cases, (read nehe tutorials in this area) I dont know if you could make texturing faster or slower by any method in opengl , what you have to check is to avoid many state changes, that will truly make your game slower.