Displaying Integers!
Displaying Integers!
I just started using Irrlicht and have gone through the tutorials. I've begun putting together a simple 2D game and was wondering how to output integer variables to the screen. The tutorial includes the use of the "font and draw()" features but this only outputs const char. Is there anyway I can output integers to the screen? I would like to have certain variables displayed in the GUI at all times and I need this code to do it.
Code: Select all
int i = 10;
core::string<wchar_t> str(i);
core::rect<s32> rect(100,100,200,150);
guienvironment->addStaticText(str.c_str(), rect);