Creating a Font Engine in DirectX11

Started by
14 comments, last by Tim Lawton 11 years, 4 months ago
That is ridiculously easy, thanks
Advertisement
Also lets say I want to replace my own text with some other value, such as FPS? I could just replace the _T("HELLO") with fps->getfps() for example?
Well, the second parameter is just a pointer to a TCHAR string in this case so you may use the required string construction functions to manipulate a TCHAR array to contain the desired text. http://msdn.microsoft.com/en-us/library/ybk95axf.aspx contains some string manipulation functions.

Cheers!
This is horrible, I have no idea how to link this up or anything, including its folders though the Linker didnt do anything
http://fw1.codeplex.com/releases/view/75558 <- from this page download FW1FontWrapper 1.1, Header, Lib & DLL x86/x64, you don't need the source code.

Include the lib in your project and put the DLL in your program directory. Include the .h file to your text rendering code and then the code should work.

Cheers!
Thanks alot for your help kauna, but I have finally fixed my own broken version! turns out the Font.vs HLSL had this line:

float4 position : POSITION;

when it should of been

float4 position : SV_POSITION;

This topic is closed to new replies.

Advertisement