4

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

4

1 回答 1

15
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH);

glutInitDisplayMode- 初始化显示模式

GLUT_DOUBLE- 允许在双缓冲窗口上显示

GLUT_RGBA- 显示颜色(红、绿、蓝)和 alpha

GLUT_DEPTH- 允许深度缓冲区

http://www.opengl.org/documentation/specs/glut/spec3/node12.html

于 2012-05-17T18:19:55.170 回答