www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: AGP on September 28, 2012, 07:58:29 pm

Title: Loader.loadOBJ(byte[] bytes)
Post by: AGP on September 28, 2012, 07:58:29 pm
Such method would be useful for those times when we want to protect the models. I could scramble the bytes for storing, them unscramble them for loading and passing them to Loader.
Title: Re: Loader.loadOBJ(byte[] bytes)
Post by: EgonOlsen on September 28, 2012, 08:25:19 pm
Just wrap the array in a ByteArrayInputStream and you are done.
Title: Re: Loader.loadOBJ(byte[] bytes)
Post by: AGP on September 28, 2012, 09:07:48 pm
That's true, thanks a lot.