Gui image does not load(SOLVED)
Posted: Wed May 28, 2008 8:34 pm
Hi I have been working on a main menu for my game,
It has an image in the background, but when I try to load my image
it won't work I get this error on the console window
I am new here so, could be a beginers mistake, but I checked the path to the file like a dozen times and could'nt get it to work... um here's my code
Does the Function corespond to any variable that might have a different name?.Or (I use code::blocks IDE) do I have to set some working
directory thing different?.
Thanks.
It has an image in the background, but when I try to load my image
it won't work I get this error on the console window
Code: Select all
Cannot load file .../.../.../Pingy3,/gui/bkg.bmp
Code: Select all
guienv->addStaticText(L"Welcome to Pingy world!!!",
rect<int>(5,4,250,25), true);
//add the buttons
guienv->addButton(rect<s32>(25,210,150,240), 0, 101, L"Play.");
guienv->addButton(rect<s32>(25,250,150,280), 0, 102, L"How to play.");
guienv->addButton(rect<s32>(25,290,150,320), 0, 103, L"Quit...");
//add an image
guienv->addImage(driver->getTexture(".../.../.../.../pingy3,/gui/bkg.bmp"),
position2d<int>(10,10));
Code: Select all
driver->getTexture
directory thing different?.
Thanks.