pawengine/image.c
2025-02-09 18:48:25 +01:00

9 lines
228 B
C

#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "image.h"
uchar *load_image(const char *path, struct IVec2 *dims) {
int _channels;
return stbi_load(path, &dims->x, &dims->y, &_channels, STBI_rgb_alpha);
}