A simple png decoder for practice.
It would receive a png file path through shell parameter, decode it to a RGBA array, and then display it via SDL2 lib.
mkdir build
cd build
cmake ..
make
cd bin
./png_decoder PNGFILEPATH
刘颖东. 揭秘数据解密的关键技术[M]. 人民邮电出版社, 2009.
Beginning Game Programming v2.0
I believe no body would like to browse my codes, for they are ugly Orz, but I still choose BSD-3 as license. Help yourself.