SaturnRingLibrary 0.9
SGL wrapper
 
Loading...
Searching...
No Matches
SRL::VDP2::VRAM Class Reference

Detailed Description

Manages VDP2 VRAM allocation.

#include <srl_vdp2.hpp>

Static Public Member Functions

static void * Allocate (uint32_t size, uint32_t boundary, VDP2::VramBank bank, uint8_t cycles=0)
 Linearly Allocates Vram in a bank and returns address to start of allocation. Allocation fails if there is not enough free space in the bank or if access requires too many cycles.
 
static void * AutoAllocateCell (Tilemap::TilemapInfo &info, uint16_t screen)
 Automatically allocates cell data for specified screen.
 
static void * AutoAllocateMap (Tilemap::TilemapInfo &info, int16_t screen)
 Automatically allocates map data for specified screen.
 
static uint32_t GetAvailable (VDP2::VramBank bank)
 Gets current amount of free VRAM in a bank.