Hi,
I tested the OpenGL polygon mode. It seems the following piece of code just draw a convex polygon:
glBegin(GL_POLYGON);
nVert = p->numVert();
for(i=0; i<nVert; i++)
{
x = p->x(i);
y = p->y(i);
glVertex2f((GLfloat)x, (GLfloat)y);
}
glEnd();
Any pointers how to draw a non-convex polygon in OpenGL?
Thanks