OpenGL Framework in Object Oriented Programming