2D graphics
Posted: Sun Nov 11, 2007 9:10 am
Hey,
As some of you might already know, I am attempting to create an FPS. But the problem is (both on this and on another project), that the 2D image files that I load and place on the game screen doesn't show up! The code I use is the one from the tutorial:
The FPS project loads a quake3 map, and the other project loads an .irr file, if that makes sense. And perhaps I've put this code in the wrong place?
As some of you might already know, I am attempting to create an FPS. But the problem is (both on this and on another project), that the 2D image files that I load and place on the game screen doesn't show up! The code I use is the one from the tutorial:
Code: Select all
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();
gui::IGUIEnvironment* env = device->getGUIEnvironment();
driver->setTextureCreationFlag(video::ETCF_ALWAYS_32_BIT, true);
// add irrlicht logo
env->addImage(driver->getTexture("../../media/irrlichtlogoalpha.tga"),
core::position2d<s32>(10,10));