I've recently started some programming in C++ using DirectX. I'm not new to C++ as I've used Allegro & SDL before. So far, I can draw text to the screen. However, now I have a slight problem, where I cannot draw a variable to the screen. Ideally, I want to draw a string + an int value. However I have no idea how to do that. This is a snippet of my code so far:
font->DrawTextA(sprite, "Score: ", -1, scoreR, DT_CALCRECT, 0xFFFFFFFF);
font->DrawTextA(sprite, "Score: ", -1, scoreR, 0, 0xFFFFFFFF);
As you might expect, this would write "Score: " to the screen. I need it to write the 'score' variable after that.
Any help would be appreciated.