On/off (e.g., depth buffer test)
- glEnable( GLenum )
- glDisable( GLenum )
- Examples:
- glEnable(GL_DEPTH_TEST);
- glDisable(GL_LIGHTING);
Mode States
- Once the mode is set the effect stays until reset
Examples:
glShadeModel(GL_FLAT) or glShadeModel(GL_SMOOTH)
glLightModel(…) etc.
glShadeModel(GL_FLAT) or glShadeModel(GL_SMOOTH)
glLightModel(…) etc.
No comments:
Post a Comment