www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Melssj5 on July 21, 2008, 08:17:44 pm

Title: Question about textures
Post by: Melssj5 on July 21, 2008, 08:17:44 pm
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?
Title: Re: Question about textures
Post by: JavaMan on July 21, 2008, 11:35:36 pm
It may work. I suppose it depends whether the Textures are attached to the TextureManager or not. Just try it out!
Title: Re: Question about textures
Post by: EgonOlsen on July 22, 2008, 12:00:31 am
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... ;)