Playing with openGL in C++