polygon wires
Hi,
I draw my polygon like this:
glBegin(GL_POLYGON);
// give the vertex points yaddah yaddah
glEnd();
My complaint is it it fills in the polygon with the selected color. How can i just outline the polygon. Also how would i outline it and then fill it with a differant color??
Thanks
Frank
ECKILLER
ECKILLER
To draw wireframe polygons use this mode : glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); That will make all primitives drawn be in wire frame. You could outline your polygon by first drawing the filled polygon and then drawing GL_LINES going from point to point around the polygon.
Nate
http://nate.scuzzy.net
Nate
http://nate.scuzzy.net
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement