the following code should draw a simply 2D-texture, but all I see is a white windows and nothing else...what's wrong? (file exists!!)
Code: Select all
int main()
{
// set up engine
IrrlichtDevice *device = createDevice(video::DT_OPENGL, core::dimension2d<s32>(640, 480), 16, false, false, 0);
device->setWindowCaption(L"2D Tests");
video::IVideoDriver* driver = device->getVideoDriver();
video::ITexture* images = driver->getTexture("tooldesign.jpg");
// now draw the whole scene
while(device->run() && driver)
{
if (device->isWindowActive())
{
driver->beginScene(true, true, video::SColor(0,0,0,0));
driver->draw2DImage(images, core::position2d<s32>(0,0), core::rect<s32>(0,0,640,480));
driver->endScene();
}
}
device->drop();
return 0;
}