Advertisement

polygon wires

Started by February 05, 2000 07:13 PM
1 comment, last by ECKILLER 25 years, 1 month ago
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
Advertisement
Also don''t forget about
glBegin(GL_LINELOOP);

This topic is closed to new replies.

Advertisement