I have to draw the backfaces of a cube. But I’ve some problem of comprehension with the different parameters.
If I define:
and the draw a polygone with glPolygonMode(GL_FRONT_AND_BACK,GL_FILL) (or GL_LINE), only the back faces appear.
It’s exactly what I want BUT glCullFace(GL_BACK) should mean that the back faces will be culled…
And if do not use glCullFace and glEnable and simply draw a polygon using glPolygonMode(GL_BACK,GL_FILL), I then obtain Front faces. But if I execute glPolygonMode(GL_BACK,GL_LINE) it will then draw the back faces AND the front lines (edges).
WHY??? Do you have any good explanation because it’s really not clear…