Currently browsing tag

shape

6. OpenGL Cube (Version 2.0)

OpenGL Cube Tutorial PreviewFrom basic 2D shapes, 3D shapes are built. And whilst complex, there are some which are provided to us by GLUT, one of those being your standard cube, made up of 12 triangles and 8 vertices, why hand code it yourself?