how to draw a cube in wireframe with hidden facets?
I would like to draw a cube wire with black edges without seeing the edges behind.
I managed a draw a cube, but you can see the edges behind we should not see. I drew with LINES and I tried to enable / disable CULLFACE and DEPTH, but it does not work. After traveling many tutorials, I still have not found the answer.
Sorry for my English.
Can you help me please?
Thank you in advance.
render with mixed GL.drawElements
Same question and one additional more that can be the answer of the first one:
How draw a cube with face and line.
I mean, How to mixe GL.drawElements.LINE_STRIP and GL.drawElements.TRIANGLE_STRIP ? Is it possible ?