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

◆ TryAllocateTexture()

static int32_t SRL::VDP1::TryAllocateTexture ( const uint16_t width,
const uint16_t height,
const CRAM::TextureColorMode colorMode,
const uint16_t palette )
inlinestatic

Try to allocate a texture.

Parameters
widthTexture width
heightTexture height
colorModeColor mode
palettePalette start identifier in color RAM (not used in RGB555 mode)
Returns
Index of the allocated texture