文件名称:Lesson12
- 所属分类:
- OpenGL
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 64kb
- 下载次数:
- 0次
- 提 供 者:
- f*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
这次我将教你如何使用显示列表,显示列表将加快程序的速度,而且可以减少代码的长度。
当你在制作游戏里的小行星场景时,每一层上至少需要两个行星,你可以用OpenGL中的多边形来构造每一个行星。聪明点的做法是做一个循环,每个循环画出行星的一个面,最终你用几十条语句画出了一个行星。每次把行星画到屏幕上都是很困难的。当你面临更复杂的物体时你就会明白了。-This time I will teach you how to use the display list, display list will speed up the process speed, and can reduce the length of the code. When you are in the production of game scene when the asteroid, every level requires at least two planets, you can use OpenGL s polygon to construct each of the planets. Smart point is to do a cycle, each cycle of the planet to draw a face, eventually you use dozens of statements to draw a planet. Every time the planets are drawn to the screen very difficult. When you are faced with more complex objects you ll understand.
当你在制作游戏里的小行星场景时,每一层上至少需要两个行星,你可以用OpenGL中的多边形来构造每一个行星。聪明点的做法是做一个循环,每个循环画出行星的一个面,最终你用几十条语句画出了一个行星。每次把行星画到屏幕上都是很困难的。当你面临更复杂的物体时你就会明白了。-This time I will teach you how to use the display list, display list will speed up the process speed, and can reduce the length of the code. When you are in the production of game scene when the asteroid, every level requires at least two planets, you can use OpenGL s polygon to construct each of the planets. Smart point is to do a cycle, each cycle of the planet to draw a face, eventually you use dozens of statements to draw a planet. Every time the planets are drawn to the screen very difficult. When you are faced with more complex objects you ll understand.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Data
....\Cube.bmp
HeHe OpenGL.txt
Lesson12.cpp
Lesson12.dsp
Lesson12.dsw
Lesson12.exe
NeHe's Readme.txt
....\Cube.bmp
HeHe OpenGL.txt
Lesson12.cpp
Lesson12.dsp
Lesson12.dsw
Lesson12.exe
NeHe's Readme.txt