Author Topic: Loader.loadOBJ(byte[] bytes)  (Read 1867 times)

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Loader.loadOBJ(byte[] bytes)
« 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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Loader.loadOBJ(byte[] bytes)
« Reply #1 on: September 28, 2012, 08:25:19 pm »
Just wrap the array in a ByteArrayInputStream and you are done.

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Re: Loader.loadOBJ(byte[] bytes)
« Reply #2 on: September 28, 2012, 09:07:48 pm »
That's true, thanks a lot.