is it possible to do something like
ITexture *images[255] = 0;
? And have each element in the array be a seperate image?
ITexture array?
Sure you can!
But you might want to use irr::core::array instead of a pointer array, because the animator for animating textures uses it.
Example from Irrlicht Demo:
and then something like node->addAnimator(anim);
if you are after that stuff.
But you might want to use irr::core::array instead of a pointer array, because the animator for animating textures uses it.
Example from Irrlicht Demo:
Code: Select all
core::array<video::ITexture*> textures;
for (s32 g=1; g<8; ++g)
{
char tmp[64];
sprintf(tmp, "../../media/portal%d.bmp", g);
video::ITexture* t = driver->getTexture(tmp);
textures.push_back(t);
}
anim = sm->createTextureAnimator(textures, 100);
if you are after that stuff.
YASS - Yet another Space Shooter
under Devolpment, see http://yass-engine.de
under Devolpment, see http://yass-engine.de