PDA

View Full Version : Polygon mode display in GLUT



avanindra
02-18-2009, 12:15 PM
Hi All,

I am relatively new to GLUT. I was trying to display a set of facets. When I put glPolygonMode( GL_FRONT_AND_BACK,GL_LINE); then I see the mesh and when I put glPolygonMode( GL_FRONT_AND_BACK,GL_FILL); then I see only the smooth facets.

What I want to see that facets with wired lines, e.g. facets in green color and boundries of facets in black color.

Please tell me how I can accomplish this.

Thanks

Brolingstanz
02-18-2009, 03:42 PM
Some recent suggestions here

http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848#Post252848

avanindra
02-22-2009, 08:45 AM
Thanks Modus