SNES color in 15-bit RGB format (BGR555)
snes_color yaze_rgb_to_snes_color(uint8_t r, uint8_t g, uint8_t b)
Convert RGB888 color to SNES color.
struct snes_palette snes_palette
SNES color palette.
yaze_bitmap yaze_load_bitmap(const char *filename)
Load a bitmap from file.
struct snes_tile_info snes_tile_info
struct snes_tile32 snes_tile32
struct yaze_bitmap yaze_bitmap
Bitmap data structure.
snes_palette * yaze_create_palette(uint16_t id, uint16_t size)
Create an empty palette.
struct snes_color snes_color
SNES color in 15-bit RGB format (BGR555)
snes_tile8 yaze_convert_tile_bpp(const snes_tile8 *tile, uint8_t from_bpp, uint8_t to_bpp)
Convert tile data between different bit depths.
yaze_bitmap yaze_create_bitmap(int width, int height, uint8_t bpp)
Create an empty bitmap.
struct snes_tile16 snes_tile16
struct snes_tile8 snes_tile8
8x8 SNES tile data
void yaze_free_bitmap(yaze_bitmap *bitmap)
Free bitmap data.
void yaze_free_palette(snes_palette *palette)
Free palette memory.
void yaze_snes_color_to_rgb(snes_color color, uint8_t *r, uint8_t *g, uint8_t *b)
Convert SNES color to RGB888.