mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 09:44:02 +00:00
20 lines
564 B
C
20 lines
564 B
C
#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);
|
|
bool zgaSaveRGBA(const char *filename, size_t width, size_t height, unsigned char *data);
|
|
bool pngSaveRGBA(const char *filename, size_t width, size_t height, unsigned char *data);
|
|
|
|
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);
|
|
|
|
#endif
|