Surface.this

Constructs a blank indexed palette-using dsdl2.Surface with a set width, height, and index bit depth, which wraps SDL_CreateRGBSurface

Parameters

size uint[2]

size (width and height) of the dsdl2.Surface in pixels

bitDepth ubyte

bit depth of the palette index (1, 4, or 8)

palette Palette

dsdl2.Palette to use

Throws

dsdl2.SDLException if allocation failed or palette-setting failed

Meta