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

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.

主站蜘蛛池模板: 凭祥市| 习水县| 扬中市| 包头市| 永登县| 绥芬河市| 湘西| 西华县| 米泉市| 五常市| 南昌县| 咸阳市| 泗阳县| 东丰县| 鄂托克前旗| 田东县| 桐柏县| 四平市| 石柱| 诸城市| 阿拉善右旗| 嘉善县| 江安县| 扎赉特旗| 桦甸市| 灵川县| 穆棱市| 建平县| 达拉特旗| 北流市| 射洪县| 云林县| 乌拉特后旗| 海门市| 通许县| 隆尧县| 宁城县| 吉林省| 兴宁市| 买车| 澄江县|