Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you draw text in DirectX 11?

In DirectX 10 you could use the font interface provided by D3DX10. In DirectX 11 you are supposed to use DirectWrite. But it looks like DirectWrite doesn't speak natively to Direct3D? Is there something basic I'm missing? How do you draw simple text with DirectX 11?

like image 483
Darkenor Avatar asked Apr 18 '11 21:04

Darkenor


1 Answers

There's a SpriteFont class in the DirectXTK library that can render text to a DirectX11 device context.

like image 180
Daemin Avatar answered Oct 15 '22 12:10

Daemin