12 #define NCLR_MAX_COLORS 256
Common types, macros, and standard library includes used throughout AnimaEngine.
unsigned short u16
Definition: common.h:15
unsigned char u8
Definition: common.h:14
struct NclrPalette NclrPalette
Container representing parsed NCLR color palette data.
#define NCLR_MAX_COLORS
Definition: nclr.h:12
int Nclr_Parse(const u8 *data, size_t size, NclrPalette *out_palette)
Parses species color palette data from raw NCLR binary stream.
Definition: nclr.c:29
void Nclr_PrintInfo(const NclrPalette *palette)
Debug printing routine to write color palette metadata to stdout.
Definition: nclr.c:114
Portable Pixmap (PPM) format writer utilities and color structures.
Container representing parsed NCLR color palette data.
Definition: nclr.h:17
u16 raw_colors[NCLR_MAX_COLORS]
Definition: nclr.h:19
RgbaColor colors[NCLR_MAX_COLORS]
Definition: nclr.h:20
int color_count
Definition: nclr.h:18
32-bit RGBA color representation struct.
Definition: ppm.h:14