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

Chapter 1. Getting Started with Direct3D

They say the first steps are the hardest, and beginning a new game is no exception. Therefore, we should use as much help as possible to make those first steps easier, and get into the fun parts of game development. To support the new WinRT platform, we need some new templates, and there are plenty to be had in Visual Studio 2012. Most important to us is the Direct3D App template, which provides the base code for a C++ Windows Store application, without any of the XAML that the other templates include.

The template that we've chosen will provide us with the code to create a WinRT window, as well as the code for the Direct3D components that will allow us to create the game world. This chapter will focus on explaining the code included so that you understand how it all works, as well as the changes needed to prepare the project for our own code.

In this chapter we will cover the following topics:

  • Creating the application window
  • Initialising Direct3D
  • Direct3D devices and contexts
  • Render targets and depth buffers
  • The graphics pipeline
  • What a game loop looks like
  • Clearing and presenting the screen
主站蜘蛛池模板: 滕州市| 敦化市| 凯里市| 平邑县| 临武县| 汤阴县| 葫芦岛市| 溧阳市| 武夷山市| 梅河口市| 桐庐县| 万年县| 武夷山市| 绥化市| 伊金霍洛旗| 大余县| 台东县| 米泉市| 八宿县| 三门县| 景谷| 隆回县| 靖州| 嘉禾县| 肥城市| 永济市| 平利县| 中超| 遂溪县| 昂仁县| 都安| 灵石县| 郎溪县| 龙岩市| 宁强县| 舒城县| 怀化市| 阆中市| 左贡县| 丽水市| 朝阳县|