how to render in wireframe-mode

Started by
3 comments, last by Chris Wachauf 22 years, 2 months ago
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
Advertisement
Read about the glPolygonMode function. Something like this should work:

glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
I didn''t know that MSDN had OpenGL docs

No, HTML is not an OO language.
perhaps you should try your search at the OpenGL site, I am sure there is more info there on OGL than at the MSDN

Hi,

thanks for your replies, especially to Dactylos,the glPolygonMode function works fine.

Bye

This topic is closed to new replies.

Advertisement