Page 1 of 1

Second form of addtexture not working

Posted: Thu Feb 08, 2007 2:55 am
by madoc
driver->addTexture("imagename", project->getHmapname());

get hmapname returns an IImage
C2664: 'irr::video::ITexture *irr::video::IVideoDriver::addTexture(const irr::core::dimension2d<T> &,const irr::c8 *,irr::video::ECOLOR_FORMAT)' : cannot convert parameter 1 from 'const irr::c8 *' to 'const irr::core::dimension2d<T> &'

But intellisense and the documentation is telling me theres 2 forms of add texture one that takes a name and a pointer to a loaded IImage, I gave it a name and an image that WOULD be loaded if it compiled....
Using an svn version from...just over a week ago? I'd post version but I can't seem to figure out how to check what version of the SVN I have

Posted: Thu Feb 08, 2007 3:25 am
by madoc
Updated SVN and recompilled irrlicht, I still get the same error. (SVN 466)

Posted: Thu Feb 08, 2007 9:08 am
by hybrid
I'd suspect that getHmapname gets the name, i.e. a c8* which would lead to this behavior. The two methods do still exist.

Posted: Thu Feb 08, 2007 11:28 am
by madoc
oh HA, I'm a complete moron, thankee