ccouto
01-31-2012, 08:00 AM
Hello
I want to draw a polygon that has a line color and a different fill color, which is the best way to do this?
I was trying to use:
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
to draw the polygon fill color and then call
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)
to draw its countour lines.
When I do this, if i have two consecutive polygons drawn this way the render scene sometimes doesn't display the contour line between them...
Thanks in advance
I want to draw a polygon that has a line color and a different fill color, which is the best way to do this?
I was trying to use:
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
to draw the polygon fill color and then call
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)
to draw its countour lines.
When I do this, if i have two consecutive polygons drawn this way the render scene sometimes doesn't display the contour line between them...
Thanks in advance