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

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
主站蜘蛛池模板: 阿拉善盟| 鄂托克旗| 平顶山市| 盖州市| 牡丹江市| 双流县| 盐边县| 团风县| 临朐县| 吴忠市| 雷波县| 桦甸市| 辛集市| 志丹县| 金塔县| 田阳县| 大港区| 垫江县| 龙陵县| 鄂尔多斯市| 左贡县| 台前县| 广南县| 贵州省| 麦盖提县| 托克逊县| 诏安县| 江北区| 阜新市| 万盛区| 汉中市| 沙田区| 井陉县| 平山县| 嘉祥县| 襄汾县| 十堰市| 江达县| 云林县| 赤城县| 将乐县|