PDA

View Full Version : HELP! how to use glPolygonMode( ) ?



08-25-2000, 07:41 AM
Hi,
I have a primitive with glBegin(...) & glEnd(). I want to toggle between the shading & wire-frame, I've tried glPolygonMode(), but it fails.

So, please HELP me! Thanks a lot.

AQ

DJ Tricky S
08-25-2000, 07:58 AM
Should be pretty straight forward:

glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
or
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);

then

glBegin();
...
glEnd();

08-25-2000, 09:02 AM
Yeah, thanks

I just solved it. http://www.opengl.org/discussion_boards/ubb/smile.gif