![]() |
Jo Engine
2024.04.28
Jo Sega Saturn Engine
|
Jo Engine Palette Handling. More...
Go to the source code of this file.
Macros | |
| #define | JO_PALETTE_MAX_COLORS |
| Define the maximum of color entry available on each palette. More... | |
| #define | JO_PALETTE_MAX |
| Define the maximum of palette. More... | |
Functions | |
| void | jo_create_palette (jo_palette *const output) |
| Create a new palette with 255 entries maximum. More... | |
| static __jo_force_inline void | jo_palette_to_cram (unsigned short *restrict data, unsigned short *restrict cram_addr, unsigned int size) |
| Copies the image palette data to CRAM. More... | |
| static __jo_force_inline void | jo_create_palette_from (jo_palette *const output, unsigned short *data, unsigned int size) |
| Create a new palette from existing data. More... | |
| void | jo_set_palette_register (const unsigned short palette_index, const jo_color color) |
| Set palette index color. More... | |
| jo_color | jo_get_palette_register (const unsigned short palette_index) |
| Get palette color from index. More... | |
Jo Engine Palette Handling.
| #define JO_PALETTE_MAX |
Define the maximum of palette.
| #define JO_PALETTE_MAX_COLORS |
Define the maximum of color entry available on each palette.
| void jo_create_palette | ( | jo_palette *const | output | ) |
Create a new palette with 255 entries maximum.
| output | The new palette |
See also jo_sprite_set_palette_id()
|
static |
Create a new palette from existing data.
| output | The new palette |
| data | Data source |
| size | Data size |
See also jo_sprite_set_palette_id()
| jo_color jo_get_palette_register | ( | const unsigned short | palette_index | ) |
Get palette color from index.
| palette_index | palette Index |
|
static |
Copies the image palette data to CRAM.
| data | Data source |
| cram_addr | Color RAM address |
| size | Data size |
| void jo_set_palette_register | ( | const unsigned short | palette_index, |
| const jo_color | color | ||
| ) |
Set palette index color.
| palette_index | palette Index |
| color | Color |
1.8.18