You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
387 B
30 lines
387 B
|
|
#pragma once |
|
|
|
#include "util.h" |
|
|
|
|
|
// NOTE: wrapper for stb_image |
|
struct util_image |
|
{ |
|
int32 w; |
|
int32 h; |
|
int32 bits_per_channel; |
|
int32 num_channels; |
|
uint data_len; |
|
uint8* pixels; |
|
char file_path[256]; |
|
}; |
|
|
|
struct util_RGBA |
|
{ |
|
real32 R; |
|
real32 G; |
|
real32 B; |
|
real32 A; |
|
}; |
|
|
|
util_image utilLoadImage(const char* base_dir, const char* filename); |
|
|
|
void utilFreeImage(util_image image); |
|
|
|
|