Second form of addtexture not working

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
madoc
Posts: 32
Joined: Fri Feb 11, 2005 10:43 am

Second form of addtexture not working

Post 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
madoc
Posts: 32
Joined: Fri Feb 11, 2005 10:43 am

Post by madoc »

Updated SVN and recompilled irrlicht, I still get the same error. (SVN 466)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
madoc
Posts: 32
Joined: Fri Feb 11, 2005 10:43 am

Post by madoc »

oh HA, I'm a complete moron, thankee
Post Reply