Ok, I need to know best way to draw text on D3D11 application. I tried to be smart and use easier way of rendering text on screen, by that i'm meaning TextOut and DrawText, which both failed, I used dozens of new examples of RenderText() and TextOut(), everyone of them failed. So what's the best way to draw text?
Best way to draw text on D3D11 application?
See one of my old journals for source code and descriptions:
http://www.gamedev.net/blog/1059/entry-2260816-making-my-own-spritefont-implementation/
There are some problems. It is harder to localise your text later and each font has to be pre-captured to an image file, but apart from that I found this to be trivially simple.
Let me know if this helps at all!
Games/Projects Currently In Development:
Discord RPG Bot | D++ - The Lightweight C++ Discord API Library | TriviaBot Discord Trivia Bot
-- Tom Sloper -- sloperama.com
The simplest way I found was to implement something called a spritefont which is a sprite sheet with the ascii sequence on it.
See one of my old journals for source code and descriptions:
http://www.gamedev.net/blog/1059/entry-2260816-making-my-own-spritefont-implementation/
There are some problems. It is harder to localise your text later and each font has to be pre-captured to an image file, but apart from that I found this to be trivially simple.
Let me know if this helps at all!
Wow, thanks, i'll try and implement it to my engine! ;)
I you want to generate those font spritesheets at runtime you could use FreeType or this https://github.com/nothings/stb .