Minimal D3D11 sprite renderer: basic back-to-front sprite rendering reference code with example sprite sheet animation logic. As usual: Complete, runnable single-function app. No modern C++ / OOP / obscuring cruft.
Swap out the sprite sheet with a font atlas for a lightweight GUI / text renderer. Clip individual sprites and glyphs by offsetting screenPos
and atlasPos
to top left corner of visible area and adjusting size
accordingly (all values in pixels):
sprite.screenPos.x += 17;
sprite.screenPos.y += 10;