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.