01-22-2006, 04:45 AM
Hi,
I'm using the following code to tesselate a polygon (after defining tobj and registering the callback functions).
glColor3f(CYAN);
tobj = gluNewTess();
gluBeginPolygon(tobj);
for(VertexNum = 0; VertexNum < NumOfVertices; VertexNum ++) {
CoOrdinates[0] = (GLdouble)X;
CoOrdinates[1] = (GLdouble)Y;
CoOrdinates[2] = (GLdouble)0.0;
gluTessVertex(tobj, CoOrdinates, CoOrdinates);
}
gluEndPolygon(tobj);It doesn't create error messages, but nor does it actually show anything on the screen. Could anyone tell me how to make it draw?
Regards,
Woods
I'm using the following code to tesselate a polygon (after defining tobj and registering the callback functions).
glColor3f(CYAN);
tobj = gluNewTess();
gluBeginPolygon(tobj);
for(VertexNum = 0; VertexNum < NumOfVertices; VertexNum ++) {
CoOrdinates[0] = (GLdouble)X;
CoOrdinates[1] = (GLdouble)Y;
CoOrdinates[2] = (GLdouble)0.0;
gluTessVertex(tobj, CoOrdinates, CoOrdinates);
}
gluEndPolygon(tobj);It doesn't create error messages, but nor does it actually show anything on the screen. Could anyone tell me how to make it draw?
Regards,
Woods