Draw a Cube
|View code on Gitlab|
Now that we hopefully are starting to get a grasp for 2d, let's go ahead and jump forward into 3d and draw a cube. In order to do this we first define the vertices needed to draw the cube, and then we also provide a projection matrix needed to look at the cube. The result of this article is shown below.