This program achieves basic graphics functions with OpenGL. Hoping it would have something helpful for you.