|
Jo Engine
2024.04.28
Jo Sega Saturn Engine
|
Go to the documentation of this file.
35 #ifndef __JO_VDP2_MALLOC_H__
36 # define __JO_VDP2_MALLOC_H__
41 # define JO_VDP2_KTABLE_SIZE (0x1FE00)
42 # define JO_VDP2_ROTATION_TABLE_SIZE (0x00080)
43 # define JO_VDP2_MAP_SIZE (8192)
44 # define JO_VDP2_CELL_TO_MAP_OFFSET(CELL_PTR) JO_DIV_BY_32(JO_MOD_POW2((int)CELL_PTR, JO_VDP2_BANK_SIZE))
@ JO_VDP2_RAM_LINE_SCROLL
Line Scroll table (for slLineScrollTable0 and slLineScrollTable1)
Definition: vdp2_malloc.h:69
@ JO_VDP2_RAM_CELL_NBG2
Definition: vdp2_malloc.h:63
@ JO_VDP2_RAM_COLOR
Color RAM for Palette, etc.
Definition: vdp2_malloc.h:74
@ JO_VDP2_RAM_CELL_RBG0
Definition: vdp2_malloc.h:65
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,...
Definition: vdp2_malloc.h:90
@ JO_VDP2_RAM_MAP_NBG1
Definition: vdp2_malloc.h:52
void * jo_vdp2_malloc(const jo_vdp2_ram_usage usage, const unsigned int n)
Dynamic VDP2 memory allocator.
@ JO_VDP2_RAM_BACK_COLOR
Back color (for slBack1ColSet)
Definition: vdp2_malloc.h:67
@ JO_VDP2_RAM_BITMAP_NBG1
Definition: vdp2_malloc.h:72
@ JO_VDP2_RAM_CELL_NBG0
CELL (for slPageRbg0, slPageNbg1, etc)
Definition: vdp2_malloc.h:61
@ JO_VDP2_RAM_CELL_NBG3
Definition: vdp2_malloc.h:64
@ JO_VDP2_RAM_BITMAP_NBG0
CELL (for slBitMapNbg0, slBitMapNbg1, etc)
Definition: vdp2_malloc.h:71
#define __jo_force_inline
force inline attribute (and prevent Doxygen prototype parsing bug)
Definition: types.h:39
@ JO_VDP2_RAM_MAP_NBG2
Definition: vdp2_malloc.h:53
@ JO_VDP2_RAM_USER
For user.
Definition: vdp2_malloc.h:49
void jo_vdp2_free(const void *const p)
function frees VDP2 memory space pointed to by p
@ JO_VDP2_RAM_KTABLE
KTABLE (for slMakeKtable)
Definition: vdp2_malloc.h:57
@ JO_VDP2_RAM_MAP_NBG3
Definition: vdp2_malloc.h:54
jo_vdp2_ram_usage
Definition: vdp2_malloc.h:47
@ JO_VDP2_RAM_CELL_NBG1
Definition: vdp2_malloc.h:62
@ JO_VDP2_RAM_MAP_RBG0
Definition: vdp2_malloc.h:55
@ JO_VDP2_LINE_COLOR_TABLE
Line color table (for slLineColTable)
Definition: vdp2_malloc.h:76
@ JO_VDP2_RAM_MAP_NBG0
MAP (for sl1MapRA, slMapNbg1, etc)
Definition: vdp2_malloc.h:51
@ JO_VDP2_RAM_RTABLE
Rotation table (for slRparaInitSet)
Definition: vdp2_malloc.h:59