I've added
guienv->addStaticText(str.c_str(),
rect<s32>(10,10,260,22), true);
to the loop but it creates after every loop a new static text box....
I've tried that way too.. It should work but it doesn't...
Code: Select all
Before loop
int testfps=0;
core::stringw str_fps = L"FPS @ ";
str_fps+=testfps;
guienv->addStaticText(str_fps.c_str(),rect<s32>(10,10,260,22), true);
After loop
if (lastFPS != fps)
{
testfps=fps;
lastFPS=fps;
}

