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

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.

主站蜘蛛池模板: 文登市| 永德县| 光泽县| 兰考县| 水富县| 清河县| 金坛市| 鱼台县| 北京市| 新沂市| 大田县| 新干县| 石棉县| 临高县| 武鸣县| 镇雄县| 乌什县| 敦煌市| 弋阳县| 蛟河市| 北辰区| 德令哈市| 垣曲县| 东乌珠穆沁旗| 潢川县| 林甸县| 裕民县| 朝阳市| 鹿泉市| 沅江市| 肃北| 邵阳市| 南宫市| 德庆县| 肇东市| 昂仁县| 望江县| 达孜县| 沂南县| 通海县| 中宁县|