wireframe

Started by
3 comments, last by vanne 22 years, 9 months ago
hallo i''ve got a vertex array set up to draw quads. is there some easy way to toggle to wireframe? some other primitive than GL_LINES?
Advertisement
I guess you could do it in many ways but the easiest is by using lines instead of quads. (GL_LINES instead of GL_QUADS)
glPolygonMode(GL_FRONT, GL_LINE);
glPolygonMode(GL_BACK, GL_LINE);

The ''GL_LINE'' part not be exactly right, but its something along those lines (hehe, bad pun)

------------------------------
Trent (ShiningKnight)
E-mail me
OpenGL Game Programming Tutorials
ths is the line that does it

  glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);  
Fine, get specific.

I have this bug on my screen about 2 pixels wide.... its annoying the hell out of me. *SLAP*
Ok... bug gone, uhhh, ummm... MY parents won''t be too happy about the condition of their
monitor though *runs to his dev computer and tapes a sign to his door "I DIDN''T DO IT!"*

------------------------------
Trent (ShiningKnight)
E-mail me
OpenGL Game Programming Tutorials

This topic is closed to new replies.

Advertisement