![]() |
Jo Engine
2024.04.28
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. More... | |
| 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) More... | |
| void | jo_vdp2_free (const void *const p) |
| function frees VDP2 memory space pointed to by p More... | |
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 |
| 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 |
1.8.18