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

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.

主站蜘蛛池模板: 江源县| 巴塘县| 松滋市| 武功县| 赤城县| 禄劝| 绥阳县| 普陀区| 喜德县| 海伦市| 桐梓县| 博客| 吴川市| 平邑县| 大兴区| 北海市| 禹城市| 廉江市| 宿迁市| 钟山县| 安顺市| 离岛区| 和平区| 枣强县| 中阳县| 十堰市| 攀枝花市| 阳泉市| 南召县| 临夏市| 凤山市| 吴忠市| 桦甸市| 嘉鱼县| 公安县| 屏南县| 勃利县| 东光县| 锡林郭勒盟| 福建省| 泗阳县|