display ints using draw :|

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Nexos
Posts: 6
Joined: Wed Aug 18, 2004 1:17 am

display ints using draw :|

Post by Nexos »

how can i display ints using draw :roll:

int scoreu = 10;

font->draw(L"scoreu", rect<s32>(400, 280, 300, 50), SColor(255,255,255,255));
Jimmy1

Post by Jimmy1 »

I have the same problem,
turboferret
Posts: 49
Joined: Thu Aug 12, 2004 12:42 pm
Location: Sweden
Contact:

Post by turboferret »

int scoreu = 10;
wchar_t buf[128];
swprintf(buf, 128, L"%d", scoreu);
font->draw(buf, rect<s32>(400, 280, 300, 50), SColor(255,255,255,255));
This monkey is useless, it only has ONE ass!!!
Nexos
Posts: 6
Joined: Wed Aug 18, 2004 1:17 am

Post by Nexos »

nvm worked
Post Reply