16 lines
742 B
Plaintext
16 lines
742 B
Plaintext
i make this tool for my ds framebuffer rendering...
|
|
|
|
since ptexconv (https://github.com/Garhoogin/ptexconv) automatically convert the image dimension into power of two...
|
|
i decided to make my own...
|
|
not sure if grit did the same, i hate grit lol...
|
|
|
|
Usage: sillyimage <input image> <output image>
|
|
|
|
first and second 4 byte is image width and height.
|
|
the rest is raw argb15, no fancy compression or anything, just a simple raw data...
|
|
|
|
TODO:
|
|
- limit image dimension...using uint32 is like using a rocket launcher to swat a fly—why on earth i need an image that big?!
|
|
- error handling dont just assume everything will go perfectly! be ready for the unexpected!
|
|
- quantize color using predefined palette
|
|
- do compression, do i really need that? |