I was curious as to how you implemented palette swapping in your 2D engine. Do you just reload the resource with the new palette, or do you somehow change the colors of the already loaded resource?
The reason I ask, is that I'd like to implement something like this, but modern hardware doesn't seem to support palette swapping. I could reload the resources and fill the information in, but that seems slow and wasteful. It would be better if I could change the "palette" of an already loaded texture. I've been looking around the net, but the only articles I can find on palette swapping in OpenGL are using techniques that aren't supported in hardware anymore.
I'm sorry I keep asking questions here, but you guys have already been through making an isometric 2D engine, so I figured you'd be the most likely to help me.
Once again, thank you in advance for any help you can give. I really appreciate it.
|