katam/include/malloc_vram.h
Zhengwen Jiang 1b352c29ef document malloc_vram
Co-authored-by: JaceCear <11230293+JaceCear@users.noreply.github.com>
2024-10-19 19:50:34 +03:00

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