This is my first post, and I am a bit of a newbie to the Irrlicht engine. My problem is this:
I have been using Irrlicht's 2d graphics features recently, but I've hit a snag. I need to read in two seperate images, using these lines of code:
Code: Select all
video::ITexture* images = driver->getTexture("../../media/Lightspeed_logo.png");
driver->makeColorKeyTexture(images, core::position2d<s32>(0,0));
video::ITexture* menuBack = driver->getTexture("../../media/spacebackground1.png");
driver->makeColorKeyTexture(menuBack, core::position2d<s32>(0,0));
I don't understand what I'm doing wrong. I print the second image the same way as the first, like this:
Code: Select all
driver->draw2DImage(menuBack, core::position2d<s32>(0,0),
core::rect<s32>(0,0,1240,768), 0,
video::SColor(255,255,255,255), true);
Thanks in advance,
-Evanias
Please help! I still can't figure this out!