Polygon mode display in GLUT

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.


Some recent suggestions here


Thanks Modus