2D & 3D graph plots in OpenGL (for University)