2D 3D plot OpenGL