AnimaEngine  1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
nclr.h
Go to the documentation of this file.
1 
6 #ifndef NCLR_H
7 #define NCLR_H
8 
9 #include "common.h"
10 #include "ppm.h"
11 
12 #define NCLR_MAX_COLORS 256
17 typedef struct NclrPalette {
22 
30 int Nclr_Parse(
31  const u8 *data,
32  size_t size,
33  NclrPalette *out_palette
34 );
35 
40 void Nclr_PrintInfo(const NclrPalette *palette);
41 
42 #endif
43 
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