![]() |
Jo Engine 2026.11.1
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_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). | |
| bool | __jo_vdp2_a0_start_is_free (const unsigned int n) |
| Whether jo_vdp2_malloc() would return the start of the bank A0 for n bytes (bitmap, line scroll, cells). | |
| 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_ROTATION_TABLE_SIZE |
| enum jo_vdp2_ram_usage |
| bool __jo_vdp2_a0_start_is_free | ( | const unsigned int | n | ) |
Whether jo_vdp2_malloc() would return the start of the bank A0 for n bytes (bitmap, line scroll, cells).
| n | Size in bytes |
| 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 |