Palette.this - multiple declarations
Function Palette.this
Constructs a dsdl2
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 dsdl2
and allocate memory for a set amount of dsdl2
s
this
(
uint ncolors
) @trusted;
Parameters
Name | Description |
---|---|
ncolors | amount of dsdl2 s to allocate in the dsdl2 |
Throws
dsdl2
if allocation failed
Function Palette.this
Constructs a dsdl2
from an array of dsdl2
s
Parameters
Name | Description |
---|---|
colors | an array/slice of dsdl2 s to put in the dsdl2 |
Throws
dsdl2
if allocation failed