Palette.this - multiple declarations
Function Palette.this
Constructs a dsdl
from a vanilla SDL_Palette*
from bindbc-sdl
this
(
sdl .pixels .SDL_Palette* sdlPalette,
bool isOwner = true,
void* userRef = null
);
Parameters
Name | Description |
---|---|
sdlPalette | the SDL_Palette pointer to manage |
isOwner | whether the instance owns the given SDL_Palette* and should destroy it on its own |
userRef | optional pointer to maintain reference link, avoiding GC cleanup |
Function Palette.this
Constructs a dsdl
and allocate memory for a set amount of dsdl
s
this
(
uint ncolors
) @trusted;
Parameters
Name | Description |
---|---|
ncolors | amount of dsdl s to allocate in the dsdl |
Throws
dsdl
if allocation failed
Function Palette.this
Constructs a dsdl
from an array of dsdl
s
Parameters
Name | Description |
---|---|
colors | an array/slice of dsdl s to put in the dsdl |
Throws
dsdl
if allocation failed