PixelFormat.palette - multiple declarations

Function PixelFormat.palette

Gets the dsdl2.Palette bounds to the indexed dsdl2.PixelFormat

inout inout(Palette) palette() @property scope return @trusted;

Returns

the bound dsdl2.Palette

Function PixelFormat.palette

Wraps SDL_SetPixelFormatPalette which sets the dsdl2.Palette for indexed dsdl2.PixelFormats`

void palette (
  Palette newPalette
) @property @trusted;

Parameters

NameDescription
newPalette the dsdl2.Palette class instance to bind as the color palette