第4题
(1)在自己的机器上配置好freeglut的编程环境; (2)运行02-OpenGLStarter程序。该程序是一个在VS2015平台上的Win32 Console Application,采用freeglut来辅助完成openGL编程。 (3)读懂该程序,学习并思考以下问题: a. 理解freeglut进行opengl编程的基本模式,体会消息驱动和回调函数; b. 函数myReshape(), display()都是什么时候调用? c. 如何实现键盘控制物体旋转平移的? e. glutIdleFunc()有什么用? f. display()函数中为什么需要调用: glTranslatef(0.0, 0.0, -G_fDistance); g. 从中找找图形流水线 h. 理解gluPerspective(60.0, 1.0*(GLfloat)w/(GLfloat)h, 1.0, 30.0); i. 理解glViewport(0, 0, w, h); 注意:除完成程序外,还需用文字逐条说明
点击查看答案
第5题
(1)在自己的机器上配置好freeglut的编程环境; (2)运行02-OpenGLStarter程序。该程序是一个在VS2015平台上的Win32 Console Application,采用freeglut来辅助完成openGL编程。 (3)读懂该程序,学习并思考以下问题: a. 理解freeglut进行opengl编程的基本模式,体会消息驱动和回调函数; b. 函数myReshape(), display()都是什么时候调用? c. 如何实现键盘控制物体旋转平移的? e. glutIdleFunc()有什么用? f. display()函数中为什么需要调用: glTranslatef(0.0, 0.0, -G_fDistance); g. 从中找找图形流水线 h. 理解gluPerspective(60.0, 1.0*(GLfloat)w/(GLfloat)h, 1.0, 30.0); i. 理解glViewport(0, 0, w, h); 更详细描述可见第一章中的视频及课件“作
点击查看答案