Question about textures

Started by Melssj5, July 21, 2008, 08:17:44 PM

Previous topic - Next topic

Melssj5

Hi, here is my question. Can I load a TextureManager from an object without having the files on my disc, for example lets say I use an ObjectOutputStream to save the TextureManager, can I restore it fro mthat file eve withput having the jpg files on my disc? will it work?
Nada por ahora

JavaMan

It may work. I suppose it depends whether the Textures are attached to the TextureManager or not. Just try it out!

EgonOlsen

#2
It should work. The TextureManager has a getState() that is meant for serialization. Just serialize the returned Vector and feed it back into the manager using setState(). At least it worked when i wrote that methods... ;)