Page 1 of 1

How to find ITexture * for x models ?

Posted: Fri Nov 03, 2006 1:40 am
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

best guess

Posted: Sat Nov 04, 2006 2:08 pm
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