Page 1 of 1

Disable texture pooling for some textures?

Posted: Fri Sep 23, 2005 8:58 am
by Andi|xng
As far as I know, getTexture() load a texture only then, when it is not already loaded.
Is it also possible to load a texture two times (or more often), by disabling the texture pooling of the IVideoDriver?

In my special case, I want to use different 2d images for my GUI. I want to delete them, as soon as the corresponding GUI object is destroyed. removeTexture() is not a solution, because I need multiple "instances" of the texture, because they are modified independently...

Any ideas? Thanks.

Posted: Fri Sep 23, 2005 11:13 am
by Elise
Try using addTexture(), it creates new texture for every image.

Posted: Fri Sep 23, 2005 1:23 pm
by Andi|xng
Thanks :) I can not believe that the solution is so simple ;)
addTexture() really makes a copy of the old texture, not only a new reference? I did not really understand the docs here. But it sounds as if it really is a copy.