OpenGL implementation of showing a simple mesh in C++