Subastra
|
The raw data of an image. More...
#include <image.h>
Static Public Member Functions | |
static void | image_init (image_t *image, allocator_t alloc, const void *buffer, sz size) |
Reinterprets the buffer as the contents of the image file and loads the raw image into memory. | |
static void | image_cleanup (image_t *image) |
Data Fields | |
allocator_t | alloc |
The allocator that's used for the internal raw buffer. | |
byte * | raw |
u32 | width |
u32 | height |
u32 | channel |
GLuint | gl |
The raw data of an image.
|
static |
|
static |
Reinterprets the buffer as the contents of the image file and loads the raw image into memory.
allocator_t alloc |
The allocator that's used for the internal raw buffer.
u32 channel |
GLuint gl |
u32 height |
byte* raw |
u32 width |