Cryru / Emotion

A game engine.
MIT License
56 stars 5 forks source link

Improve image decoding/encoding #59

Closed Cryru closed 3 years ago

Cryru commented 4 years ago

Both the PNG and BMP image encoding/decoding return BGRA pixels. It would be nice if a PixelFormat (maybe reuse the one from GL?) can be passed in. This would allow certain mask textures to take up 4x less space.

Cryru commented 3 years ago

PNGs now return pixel format since https://github.com/Cryru/Emotion/commit/eccddf6cc6d811bb0b2aa48190fb2ca6118a5759