The state of the graphics library is retained in the graphics context data structure. The default state attributes are listed in the following table.
Attribute | default value |
Display mode | Color map |
Draw buffer | front |
Back buffer | undefined |
Zbuffer | disabled |
Dithering | disabled |
Font | large vector font |
Lighting | disabled |
Shade Model | flat |
Foging | disabled |
Cull face | disabled |
Clear color | (0,0,0) |
Clear index | 0 |
Matrix mode | EZ_MODELVIEW |