Oh man, I am stupid. What I said before about bytes is correct but, that wasn't the real problem with wad/miptexes. The problem was, I lost just enough scope not to realize that I had already set the colors from the palette in the stored mipstream and when I go to pull that saved mipstream from the library I was setting the colors again. It's "funny" how when you stop doing the wrong thing stuff starts working all-of-a-sudden.
I'm not sad that I re-rewrote this part. haxe.io.Bytes is available on all platforms and it's as low as I can go among the APIs. ie... other APIs are extending haxe.io.Bytes, including openfl.utils.ByteArray (in one way or another, but also poorly). I like that my code is now working on the most base level it can.
EDIT: Actually, I need to reverse that. Storing mipstreams in the library with the palette already applied will just make it 10 times more complicating to get it into a wad. I bet I already realized that and simply forgot to go to the wad class to make the change...and now I just got rid of the very thing I was trying to do...
It's all good we're talking about half a line of code.
I'm not sad that I re-rewrote this part. haxe.io.Bytes is available on all platforms and it's as low as I can go among the APIs. ie... other APIs are extending haxe.io.Bytes, including openfl.utils.ByteArray (in one way or another, but also poorly). I like that my code is now working on the most base level it can.
EDIT: Actually, I need to reverse that. Storing mipstreams in the library with the palette already applied will just make it 10 times more complicating to get it into a wad. I bet I already realized that and simply forgot to go to the wad class to make the change...and now I just got rid of the very thing I was trying to do...

Comment