Using SDL2 and OpenGL to create a rotating cube in C++