Explain in detail what functionality is provided by the settings in the line:
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH);
so far i know that this line will initialize the display mode by requesting a double buffere setting, setting a RGBA window mode and request a depth buffer but how can i explain this more simply. i want to describe each argument in simple English
glutInitDisplayMode
- inits display modeGLUT_DOUBLE
- allows for display on the double buffer windowGLUT_RGBA
- shows color (Red, green, blue) and an alphaGLUT_DEPTH
- allows for depth bufferhttp://www.opengl.org/documentation/specs/glut/spec3/node12.html