PixelFormat.this

Constructs a dsdl2.PixelFormat using an indexed SDL_PixelFormatEnum from bindbc-sdl, allowing use with dsdl2.Palettes

Parameters

sdlPixelFormatEnum SDL_PixelFormatEnum

the SDL_PixelFormatEnum enumeration (indexed)

palette Palette

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

Throws

dsdl2.SDLException if allocation or palette-setting failed

Meta