Will Glynn
Will Glynn
Well... the PNGs _look_ correct. For each exporter I defined in `but2png`, I looked at the surrounding drawing code to figure out how palettes are supposed to work. Some of...
Baby steps. One image file at a time :-)
Sure. A `Surface` represents the general concept of a 2D array of colored, possibly-transparent pixels. Internally, it wraps an `SDL_Surface`. The only operation supported by all surfaces right now is...
Yes. Mostly: we need the global palette to be set by the loaded images and, at times, manipulated programmatically. For example, all the current drawing calls work in terms of...
> From your earlier statement, it seems I would have to make it an 8bpp palettized PNG, but then I have to somehow magically make its palette compatible with any...
Awesome! I cherry-picked those commits (now 95d4fae8 and 671d68e5) and made a few small changes to build with clang + CMake. It's now in `master`.
Sweet! Now committed in ff9242c8e2f38f6d1209100294365f7d264d286f, along with a tweak in 3e18e538a3397717b182d8b39c35a3823e37480a.
I was initially concerned with moving palette entries into an enum because I know that the palette shifts from screen to screen. Then I [compared a few images](https://gist.github.com/4043529): ...
Thanks for the insight, @mkmccarty. I think the screen abstraction in #7 would be the most direct way to move away from palettes.