How to find ITexture * for x models ?

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
sunnygraphy
Posts: 44
Joined: Mon Dec 05, 2005 8:15 am

How to find ITexture * for x models ?

Post by sunnygraphy »

Hi..

I am trying to delete texture belonged to x model.

Since we do not care about loading texture in X models,
I could not save ITexture * for later use.

I want to delete unused texure .
How can I know the ITexture pointer for my x models?

smgr->getVideoDriver()->removeAllTextures()
This function delete textures ,
but ITexture pointers are not initialized to NULL;
so smgr->drawAll() function give me errors....




thanks
juliusctw
Posts: 392
Joined: Fri Apr 21, 2006 6:56 am
Contact:

best guess

Post by juliusctw »

i guess you can try

delete Node->getMaterial(6).Texture1
or
Node->getMaterial(some number).Texture1 = 0;

not sure if it would work, but my best guess
Post Reply