GL_POLYGON
is only for convex polygons:
GL_POLYGON
: Draws a single, convex polygon. Vertices 1 through N define this polygon.
For concave polygons you have at least two options:
-
Triangulate the polygon and use
GL_TRIANGLES
.
GL_POLYGON
is only for convex polygons:
GL_POLYGON
: Draws a single, convex polygon. Vertices 1 through N define this polygon.
For concave polygons you have at least two options:
Triangulate the polygon and use GL_TRIANGLES
.