OpenGL State Machine o Open gL is a finite state machine predetermined and countable number of different states e The graphics system behaviors are determined by these system state, which can be modified by calling openGL functions The Open gl state includes e The current color or other attributes MatrixMode(GL PROJECTION) o The current model viewing transformations g denty( ) gluortho2D(…) The current camera model clipping e The current lighting reflectance mo ● The current viewport All have default values, remaining until a new setting on itOpenGL State Machine OpenGL is a finite state machine A predetermined and countable number of different states The graphics system behaviors are determined by these system state, which can be modified by calling OpenGL functions. The OpenGL state includes: The current color or other attributes The current model & viewing transformations The current camera model & clipping The current lighting & reflectance model The current viewport All have default values, remaining until a new setting on it. … glMatrixMode (GL_PROJECTION); glLoadIdentity( ); gluOrtho2D( … ); … 5