Welcome![Sign In][Sign Up]
Location:
Search - opengl face construct

Search list

[OpenGL programLesson12

Description: 这次我将教你如何使用显示列表,显示列表将加快程序的速度,而且可以减少代码的长度。 当你在制作游戏里的小行星场景时,每一层上至少需要两个行星,你可以用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.
Platform: | Size: 65536 | Author: ff | Hits:

CodeBus www.codebus.net