# microsoft/DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++

Repository: https://github.com/microsoft/DirectXTK
Canonical: https://ross.abutalabs.com/products/directxtk
Homepage: https://walbourn.github.io/directxtk/
Language: C++
License: MIT
License Family: permissive
Topics: microsoft, directx, directx-11, cpp-library, graphics, xbox, directxtk, uwp, desktop
Last push: 2026-08-20T00:09:24+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 59, longevity 100
- inputs: {"age_days": 4164, "days_push": 14, "days_rel": 117, "gap_med": 110.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2851, forks 537 (observed 2026-08-28T04:07:25.639802+00:00)

## What it is
The DirectX Tool Kit (DirectXTK) is a collection of helper classes for writing Direct3D 11 C++ code in Win32 desktop, UWP, and Xbox One applications. It provides runtime building blocks such as sprite and text rendering, common shaders, geometric primitives, model loading, input helpers, and a low-level audio API.

## Use cases
- render 2D sprites in a Direct3D 11 game
- draw bitmap-based text in a DirectX C++ application
- load and draw simple meshes from .CMO or .SDKMESH files
- create common geometric shapes like cubes and spheres for rendering
- track keyboard, mouse, and gamepad input in a Windows game
- load DDS and WIC image files as textures
- play audio using XAudio2 in a DirectX app
- apply common post-processing effects to rendered scenes

## When to choose
- you are writing a Direct3D 11 C++ application for Windows desktop, UWP, or Xbox
- you want XNA-style helper classes like SpriteBatch, SpriteFont, and Effects without the legacy DirectX SDK
- you need lightweight texture loaders, state object factories, or dynamic graphics memory management
- you want a permissively licensed (MIT) library maintained by Microsoft

## When to avoid
- you are targeting Direct3D 12 or the latest graphics APIs instead of Direct3D 11
- you need a full game engine with scene graphs, physics, or asset pipelines
- you are developing for non-Windows platforms such as Linux or macOS
- you require high-level engine features rather than low-level rendering helpers

## Facets
- artifact type: library
- maturity: stable
- function: graphics, game-engine, image-processing, audio-processing, gui
- domain: graphics, developer-tools, windows
- platform: windows, cpp, cross-platform
- tags: directx-11, direct3d, sprite-rendering, text-rendering, gamepad-input, uwp, xbox, texture-loading, audio, win32, game-development, desktop

## Member repositories
- microsoft/DirectXTK (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:25.639802+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:36:53.873317+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/DirectXTK (fetched 2026-08-28T04:07:25.639802+00:00, sha 8c002c488aff)
  - homepage: https://walbourn.github.io/directxtk/ (fetched 2026-08-29T09:52:29.731901+00:00, sha 52c8902b8405)
- Data as of 2026-08-30T08:39:29.467469+00:00.
