![]() |
Jo Engine 2026.11.6
Jo Sega Saturn Engine
|
VDP2 memory allocation (cell, map, rotation, scroll, etc). More...
Go to the source code of this file.
Macros | |
| #define | JO_VDP2_KTABLE_SIZE |
| #define | JO_VDP2_ROTATION_TABLE_SIZE |
| #define | JO_VDP2_MAP_SIZE |
| #define | JO_VDP2_PRINTF_CELL_OFFSET |
| The font of jo_printf() (NBG0, 256 cells of 16 colors) at the start of the bank B1 (VRAM offset). | |
| #define | JO_VDP2_PRINTF_CELL_SIZE |
| #define | JO_VDP2_PRINTF_MAP_OFFSET |
| The map of jo_printf() (NBG0) in the bank B1 (VRAM offset). | |
| #define | JO_VDP2_CELL_TO_MAP_OFFSET(CELL_PTR) |
Functions | |
| void * | jo_vdp2_malloc (const jo_vdp2_ram_usage usage, const unsigned int n) |
| Dynamic VDP2 memory allocator. | |
| static __jo_force_inline void * | jo_vdp2_malloc_autosize (const jo_vdp2_ram_usage usage) |
| Dynamic VDP2 memory allocator for known size usage (JO_VDP2_RAM_RTABLE, JO_VDP2_RAM_KTABLE, JO_VDP2_RAM_COLOR). | |
| void | jo_vdp2_free (const void *const p) |
| function frees VDP2 memory space pointed to by p | |
VDP2 memory allocation (cell, map, rotation, scroll, etc).
| #define JO_VDP2_CELL_TO_MAP_OFFSET | ( | CELL_PTR | ) |
| #define JO_VDP2_KTABLE_SIZE |
| #define JO_VDP2_MAP_SIZE |
| #define JO_VDP2_PRINTF_CELL_OFFSET |
The font of jo_printf() (NBG0, 256 cells of 16 colors) at the start of the bank B1 (VRAM offset).
| #define JO_VDP2_PRINTF_CELL_SIZE |
| #define JO_VDP2_PRINTF_MAP_OFFSET |
The map of jo_printf() (NBG0) in the bank B1 (VRAM offset).
| #define JO_VDP2_ROTATION_TABLE_SIZE |
| enum jo_vdp2_ram_usage |
| void jo_vdp2_free | ( | const void *const | p | ) |
function frees VDP2 memory space pointed to by p
| p | pointer that must have been returned by a previous call to jo_vdp2_malloc() |
| void * jo_vdp2_malloc | ( | const jo_vdp2_ram_usage | usage, |
| const unsigned int | n ) |
Dynamic VDP2 memory allocator.
| usage | VDP2 memory segment usage |
| n | Segment size |
|
static |
Dynamic VDP2 memory allocator for known size usage (JO_VDP2_RAM_RTABLE, JO_VDP2_RAM_KTABLE, JO_VDP2_RAM_COLOR).
| usage | VDP2 memory segment usage |