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

Installing DirectXTK

We will use NuGet, a development package manager that comes with Visual Studio 2012 to install DirectXTK. Before this can happen, we need to ensure it is up-to-date using the Extensions and Updates dialog, found in the Tools menu. (Select Updates on the left side of the dialog.) Once it is up-to-date, we can use NuGet to install C++ packages. Right-click on your game project in Visual Studio and choose Manage NuGet packages. This will bring up the management dialog, where we can search for new packages. Search for DirectXTK and install the DirectX Tool Kit when it appears.

Once it finishes downloading, it will integrate with your project, allowing you to include any of the header files using the #include <file.h> directive.

If you want further information about the toolkit, visit http://directxtk.codeplex.com, which will let you access the source code as well as the feature list for the library. For this project we will only be using the following types:

  • SpriteBatch
  • SpriteFont

Most of the other features relate to 3D games and can be ignored.

主站蜘蛛池模板: 蒙阴县| 民和| 肇源县| 澎湖县| 若尔盖县| 农安县| 沂源县| 志丹县| 临桂县| 河北区| 阿克苏市| 翁牛特旗| 临漳县| 静海县| 黑水县| 锦州市| 辽阳县| 中宁县| 平凉市| 阿拉尔市| 绥化市| 阜康市| 湖北省| 临江市| 阳朔县| 永新县| 长沙市| 太仆寺旗| 尚义县| 阿勒泰市| 康乐县| 滦南县| 彝良县| 和林格尔县| 临朐县| 陇南市| 平陆县| 印江| 左权县| 磐安县| 泸州市|