PixelFormat.palette

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

  1. inout(Palette) palette()
  2. void palette(Palette newPalette)
    class PixelFormat
    @property @trusted
    void
    palette

Parameters

newPalette Palette

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

Meta