SaturnRingLibrary 0.9.1
SGL wrapper
 
Loading...
Searching...
No Matches

◆ AutoAllocateBmp()

static void * SRL::VDP2::VRAM::AutoAllocateBmp ( Bitmap::BitmapInfo & info,
int16_t screen,
int * size = nullptr )
inlinestatic

Automatically allocates bitmap for specified screen.

Parameters
infoBitmap data description
screenThe screen identifier
sizeoptional pointer to pass the resulting allocation size back from function
Returns
Pointer to the allocated memory
Note
The maximum allocation size supported is 0x40000 bytes (2 banks of VRAM).