My codes=
Code: Select all
void Init()
{
rect<s32> windowRect=rect<s32>(0,0,400,500);
IGUIWindow * window=Environment->addWindow(windowRect,false,L"Inventory",0,-1);
window->setDrawTitlebar(false);
backgroundTexture= Device->getVideoDriver()->getTexture("Data/inv.png");
window->addChild((IGUIElement*)backgroundTexture);
}