Hello, can someone tell me what's the easiest way to draw string with D3D11? I can't use both FW1FontWrapper and ImGui, so I need an alternative.
The only goal I want to get is to draw a text at a screen location, using Tahoma font (if possible, with outline style).
Thanks in advance.
The easiest way to draw text with D3D11
I recommend this. https://directxtk.codeplex.com/wikipage?title=SpriteFont. It is part of a Math/helper library that wraps D3D functionality. You can download the source/binaries here : https://github.com/Microsoft/DirectXTK. It is also available in the NuGet package control in Visual Studio. I have used it for multiple projects with positive results. Cheers.
Although probably not the easiest way, perhaps the most powerfull way that gives you complete control is to use direct2d on your standard d3dx11.
There are 2 different ways you can do this
1. Use dx2d to draw text to the screen buffer each frame.
2. Use dx2d to draw text to the gpu memory of a texture and display that as part of your normal 3d pipeline
See here for details - https://msdn.microsoft.com/en-us/library/windows/desktop/dd370966(v=vs.85).aspx