// image.h #pragma once #ifndef IMAGE_H #define IMAGE_H #ifdef __cplusplus #include extern "C" { #else #include #endif // Loads an image file as ARGB8888. Returns pointer to pixel data, sets width/height. NULL on failure. uint32_t* image_load(const char* filename, int* width, int* height); // Loads and resizes an image file to desired dimensions as ARGB8888. Returns pointer to pixel data. NULL on failure. uint32_t* image_load_resized(const char* filename, int desired_width, int desired_height); // Frees image data. void image_free(uint32_t* data); #ifdef __cplusplus } #endif #endif // IMAGE_H