2022-03-31 19:03:40 +00:00
|
|
|
#ifndef BBGE_IMAGE_H
|
|
|
|
#define BBGE_IMAGE_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
bool tgaSaveRGBA(const char *filename, size_t width, size_t height, unsigned char *data);
|
2024-11-08 21:03:44 +00:00
|
|
|
//bool zgaSaveRGBA(const char *filename, size_t width, size_t height, unsigned char *data);
|
2022-04-29 08:34:10 +00:00
|
|
|
bool pngSaveRGBA(const char *filename, size_t width, size_t height, unsigned char *data, unsigned compressLevel);
|
2022-03-31 19:03:40 +00:00
|
|
|
|
|
|
|
struct ImageData
|
|
|
|
{
|
|
|
|
unsigned char *pixels; // NULL when failed to load
|
|
|
|
size_t w, h;
|
|
|
|
unsigned channels;
|
|
|
|
};
|
|
|
|
|
|
|
|
ImageData imageLoadGeneric(const char *filename, bool forceRGBA);
|
|
|
|
ImageData imageLoadZGA(const char *filename);
|
2023-05-31 16:07:55 +00:00
|
|
|
ImageData imageLoadQOI(const char *filename, bool forceRGBA);
|
2022-03-31 19:03:40 +00:00
|
|
|
|
|
|
|
#endif
|