Rendering a Cube using OpenGL