10 lines
228 B
C
10 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);
|
||
|
}
|