Archived

This topic is now archived and is closed to further replies.

how to render in wireframe-mode

This topic is 5822 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, i was searching the MSDN docs for a function to make opengl render in wireframe mode but i didn''t found one, maybe i typed in the wrong words to search for.So, my question is, whether there is a function like in Direct3d ( SetRenderState(D3DRENDERSTATE_FILLMODE,D3DFILL_WIREFRAME)) whith that you can make opengl render in wireframe mode and what the function is called.I hope you understand what i meant (my english isn''t really perfect, i''m working on it). thx in advance

Share this post


Link to post
Share on other sites
Read about the glPolygonMode function. Something like this should work:

glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);

Share this post


Link to post
Share on other sites