I'm refactoring some of my directx10 code to directx11 and trying to figure out DIrectWrite for my text functions. From MSDN, I hear that they're switching everything to this and that directwrite is now included with direct3d. But, eh - I can't find a tutorial that actually shows 3d Rendered text with directwrite. Anyone know an example?
Asked
Active
Viewed 4,802 times
2 Answers
4
Microsoft "Direct3D and Direct2D text overlay sample" should do the trick ! http://code.msdn.microsoft.com/windowsapps/Direct2D-Direct3D-Interop-ee641e46

Berthier Lemieux
- 3,785
- 1
- 25
- 25
-
1Does this technique work without Metro/Win8? – Rei Miyasaka May 14 '12 at 00:29
2
You want to start with the code Samples that Microsoft provide: http://archive.msdn.microsoft.com/DirectWrite
These are really good and I managed to implement DirectWrite quite easily following the samples. They are all documented pretty well. Check out the header file DWrite.h
as well, this is fully documented (the same as the website).

Mark Ingram
- 71,849
- 51
- 176
- 230
-
-
The tutorials are 2D, but they can still be used in 3D. DirectWrite breaks down the API into 3 layers. Font Enumeration, Glyph Layout and Glyph Rendering. You can pick and choose the sections you want. I currently use a Direct2D renderer, but you could easily swap that for a Direct3D renderer. – Mark Ingram Apr 21 '11 at 09:44