Back Face Culling for Line Loop
问题 I am using z-buffer to render my 3D triangular mesh. However, when I rendered the model as a wireframe mesh, I also saw the triangle faces which should have been hidden by the front face. So, I used the back face culling as follows: glEnable(GL_CULL_FACE); glCullFace(GL_BACK); drawWireFrame(); glDisable(GL_CULL_FACE); The drawWireFrame function is as follows: void drawWireFrame() { int i, j; glColor3d(1., 0., 0.); HE_edge *curr; for (int i = 0; i < he_f_count; i++) { glBegin(GL_LINE_LOOP);