i have some code which is true and work correctly
scene::IMeshSceneNode* node = 0;
irr::video::SMaterial& m = node->getMaterial(0);
how can I get the texture path or texture name from m ???
get texture
Re: get texture
m.getTexture(index)->getName();
Re: get texture
const io::SNamedPath& mat = node->getMaterial(0).getTexture(0)->getName();
const path& p = mat.getPath();
in p there is an attribute named array that contain the path it return irr.fschar_t*
how to get stringw from it
const path& p = mat.getPath();
in p there is an attribute named array that contain the path it return irr.fschar_t*
how to get stringw from it
Re: get texture
The good news is that converting to a stringw is easy
Stringw text( some char* variable)
Then use as text.c_str()
Stringw text( some char* variable)
Then use as text.c_str()