What I am trying to do is place mouse x and y position values on the screen. The problem is in c/c++ u cant add strings togeather, and for the font draw function it requires a wide character.
Heres what I tried:
Code: Select all
string* mxy;
mxy->append(input->mouseX());
mxy->append(", ");
mxy->append(input->mouseY());
fWhite->draw(mxy->c_str(),rect<s32>(50,100,0,0),SColor(255,255,0,0));Can someone point me in the right direction or toss me an example of how to use irrlichts string class? I'm hoping it will be shorter than using itoa, stringf etc...
edit: to make it clear im trying to concatonate the x and y values seporated by a comma, and convert using .c_str() to wchar_t