I have a problem when I try to use Polygon in OpenGL. I don\'t know how to explain this but all my vertices are connected with the beginning one. The problem happens when I
GL_POLYGON is only for convex polygons.
GL_POLYGON
For concave polygons you have at least two options:
Triangulate the polygon and use GL_TRIANGLES.
GL_TRIANGLES
Use the stencil buffer trick.