mirror of
https://github.com/jiangzhengwenjz/katam.git
synced 2024-11-23 05:00:01 +00:00
1b352c29ef
Co-authored-by: JaceCear <11230293+JaceCear@users.noreply.github.com>
15 lines
325 B
C
15 lines
325 B
C
#ifndef GUARD_MALLOC_VRAM_H
|
|
#define GUARD_MALLOC_VRAM_H
|
|
|
|
#include "global.h"
|
|
|
|
#define VRAM_HEAP_SEGMENT_SIZE 0x40
|
|
#define VRAM_TILE_SLOTS_PER_SEGMENT (VRAM_HEAP_SEGMENT_SIZE / TILE_SIZE_4BPP)
|
|
|
|
u32 VramMalloc(u32 numTiles);
|
|
void VramResetHeapState(void);
|
|
void VramFree(u32 addr);
|
|
u16 VramGetTotalAllocatedTiles(void);
|
|
|
|
#endif
|