How no one noticed that before?
I am using 3033 svn version.
Here is code to reproduce:
Code: Select all
#include <irrlicht.h>
#pragma comment(lib, "Irrlicht.lib")
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
int _tmain(int argc, _TCHAR* argv[])
{
IrrlichtDevice* device = createDevice( video::EDT_DIRECT3D9, dimension2d<u32>(640, 480), 16, false, false, false, 0);
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
IGUISpinBox* pSpinBox = guienv->addSpinBox(L"0", rect<s32>(260, 60, 310, 80));
pSpinBox->setToolTipText(L"Some text");
while(device->run())
{
driver->beginScene(true, true, SColor(255,100,101,140));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
device->drop();
return 0;
}