Added OpenGL based method for testing the graphics functions