Jump to content
  • Advertisement
iluz0r

DX11 The easiest way to draw text with D3D11

This topic is 378 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement

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

 

Edited by CortexDragon

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!