comparison png.h @ 1569:0ec89dadb36d

Add code for loading PNG images. Added 360 controller image. WIP work on gamepad mapping UI
author Michael Pavone <pavone@retrodev.com>
date Thu, 19 Apr 2018 00:51:10 -0700
parents b505083dcd87
children eb45ad9d8a3f
comparison
equal deleted inserted replaced
1568:d14490dee01f 1569:0ec89dadb36d
1 #ifndef PNG_H_ 1 #ifndef PNG_H_
2 #define PNG_H_ 2 #define PNG_H_
3 3
4 void save_png24(FILE *f, uint32_t *buffer, uint32_t width, uint32_t height, uint32_t pitch); 4 void save_png24(FILE *f, uint32_t *buffer, uint32_t width, uint32_t height, uint32_t pitch);
5 void save_png(FILE *f, uint32_t *buffer, uint32_t width, uint32_t height, uint32_t pitch); 5 void save_png(FILE *f, uint32_t *buffer, uint32_t width, uint32_t height, uint32_t pitch);
6 uint32_t *load_png(uint8_t *buffer, uint32_t buf_size, uint32_t *width, uint32_t *height);
6 7
7 #endif //PNG_H_ 8 #endif //PNG_H_