61 if ( !result->
data ) {
RGBi * malloc_palette(int _size)
Allocate a palette space.
char * resource_load_asserts(Environment *_environment, char *_filename)
int rgbi_extract_palette(Environment *_environment, unsigned char *_source, int _width, int _height, int _depth, RGBi _palette[], int _palette_size, int _sorted)
Extract the color palette from the given image.
int file_get_size(Environment *_environment, char *_filename)
ImageDescriptor * image_descriptor_create(Environment *_environment, char *_filename, int _flags)
ImageDescriptor * image_descriptor_flip_x(Environment *_environment, ImageDescriptor *_source_image)
ImageDescriptor * image_descriptor_flip_y(Environment *_environment, ImageDescriptor *_source_image)
STBIDEF stbi_uc * stbi_load(char const *filename, int *x, int *y, int *channels_in_file, int desired_channels)
#define adiline4(s, a, b, c, d)
struct _ImageDescriptor ImageDescriptor
#define CRITICAL_IMAGE_LOAD_UNKNOWN_FORMAT(f)
struct _Environment Environment
Structure of compilation environment.