image background

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
SilverGrom

image background

Post by SilverGrom »

how can i display background's image in the tutorial of user interface ?
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

Use a GUIImage or ITexture and make sure its the size of the window... (download my PacBot - Aura demo thing...its got an example of that in the MainMenu source)

URL: http://www.phyer.net/whoppyarts/
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
Silvergrom

Post by Silvergrom »

can u explain me the line that i do place in my code
deps
Posts: 115
Joined: Sat Jan 10, 2004 5:22 pm
Location: Tranås, Sweden

Post by deps »

Gui example

Code: Select all

gui::IGUIEnvironment* guienv = device->getGUIEnvironment();
gui::IGUIImage* img = guienv->addImage(core::rect<int>(0,0,640,480));
img->setImage(driver->getTexture("background.tga"));
Post Reply