Skip to main content
GameDev.net gamedev.net
🔒 Locked

wireframe

Started by CoderTCD Oct 19, 2003 at 11:32 AM 0 replies 350+ views
Original Post
CoderTCD
CoderTCD
how can I make all triangles rendered wireframe? I want the side lines only. I don''t want to use GL_LINES because I need to change all code. serdar
Ilici
Ilici
void COpenGLRenderer::ToggleWireframe()
{
rWireframe = !rWireframe;
if (rWireframe)
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
else
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
}

that's it no GL_LINES for rendering and stuff




[ My Site ]
'I wish life was not so short,' he thought. 'Languages take such a time, and so do all the things one wants to know about.' - J.R.R Tolkien
Founding member of "Un-Ban nes8bit and Jesper T" association (UNAJA) (to join put this in your sig)
/*ilici*/

[edited by - Ilici on October 19, 2003 1:24:12 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.