Is Irrlicht doing something weird or am I mistaken?
Also, from the documentation of irr::video::IDriver::getTexture
My code specifically:Loads the texture from disk if it is not already loaded
Code: Select all
node = ares->getSmgr()->addCubeSceneNode(1,0,-1,core::vector3df(0,10,0));
node->setMaterialFlag(irr::video::EMF_LIGHTING,false);
node->getMaterial(0).setTexture(0,ares->getDriver()->getTexture("redbricks_color.jpg"));
~DtD