官术网_书友最值得收藏!

From the ground up

Even if we were to go ahead and implement the code to allow us to utilize the Camera class, there would be nothing to display at this point, as we have not defined any objects in our 3D world other than the camera, and it is invisible.

There are several different ways we could approach drawing the floor of the maze. We could draw the whole floor as a single square in a particular color. We could draw the same giant square using a texture that was repeated over the whole thing.

Both of these methods are quite valid, but we are going to take a slightly different approach. We will build a square for each cell of the maze floor, alternating the colors of the squares to create a checkerboard-like pattern. We will draw all of the floor tiles in a single operation, sending all of the geometry to the graphics card at once.

主站蜘蛛池模板: 永福县| 耒阳市| 巴塘县| 定陶县| 邻水| 武清区| 清河县| 屏东市| 墨竹工卡县| 高雄市| 卢氏县| 墨江| 浦城县| 施秉县| 灵璧县| 肇东市| 岗巴县| 上虞市| 雅安市| 呼和浩特市| 西充县| 抚顺县| 和静县| 博湖县| 崇礼县| 青海省| 衡山县| 绥德县| 宜州市| 阜城县| 黄陵县| 瑞安市| 本溪| 右玉县| 隆德县| 诏安县| 西安市| 民乐县| 柳河县| 施秉县| 探索|