PNG Hex Dumper (PHEXDUM)

Working on a utility that can convert a .PNG file into a hex dump.
You can then take that hex dump and #include it into an C99 array like such:

    uint32_t my_png_data[ ]={
          #include "PNG_HEX_DUMP.TXT"
    };

I am doing this so I can embed assets into my game engine. My code it on github if you are interested in trying out my hex dump utility. The utility encodes as uint32_t rather than an array of bytes ( uint8_t ) in order to save memory used in the source code.

0xFF00FF00 is shorter than 0xFF,0x00,0xFF,0xFF

GITHUB: github.com/KanjiCoder/PHEXDUM
Twitch: www.twitch.com/kanjicoder

Comments

Popular posts from this blog

How to compile C without an IDE

Clean Code Sucks , Make Up New Words!

0x400000