pawengine/image.c

10 lines
228 B
C
Raw Permalink Normal View History

2025-02-09 18:48:25 +01:00
#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);
}