Answer the question
In order to leave comments, you need to log in
DirectX 9 | How to render text in different colors?
Here is the text rendering code:
D3DCOLOR fontColor = D3DCOLOR_ARGB(255, 255, 0, 0);
RECT rct; //Font
rct.left = 20;
rct.right = 1680;
rct.top = 20;
rct.bottom = rct.top + 200;
char text[255];
sprintf(text, "Text:\n IsOpen: %i ||| Banned: %s", open, GetBan());
m_font->DrawTextA(NULL, text, -1, &rct, 0, fontColor);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question