I need to manage multiple resources with same name.
I saw in this post (http://www.ogre3d.org/forums/viewtopic.php?f=4&t=43302) that this was now possible by using resource groups.
The problem is, when I want to set a texture to my material, I have no way to define the group in which my textureName should be searched.
This is what I can do :
Code: Select all
Ogre::TextureUnitState* t = myMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0);
t->setTextureName(myTextureName);
Code: Select all
Ogre::TextureUnitState* t = myMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0);
t->setTextureName(myTextureName, myGroup);
Am I missing something ? Is there another way to do that ?
Thanks.