how to render in wireframe-mode
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
Read about the glPolygonMode function. Something like this should work:
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
perhaps you should try your search at the OpenGL site, I am sure there is more info there on OGL than at the MSDN
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement