Surface.colorKey - multiple declarations
Function Surface.colorKey
Wraps SDL_GetColorKey which gets the color key used by the dsdl for transparency
Returns
transparency color key in dsdl
Throws
dsdl if color key unable to be fetched
Function Surface.colorKey
Wraps SDL_SetColorKey which sets the color key used for the dsdl making pixels of the same
color transparent
void colorKey
(
uint newPixelKey
) @property @trusted;
Parameters
| Name | Description |
|---|---|
| newPixelKey | pixel value of the color key that get transparency |
Throws
dsdl if color key unable to set
Function Surface.colorKey
Wraps SDL_SetColorKey which sets the color key used for the dsdl making pixels of the same
color transparent
Parameters
| Name | Description |
|---|---|
| newColorKey | dsdl specifying pixels that get transparency |
Throws
dsdl if color key unable to set
Function Surface.colorKey
Acts as SDL_SetColorKey(surface, NULL) which disables color-keying
void colorKey
(
typeof(null) _
) @property @trusted;
Function Surface.colorKey
Wraps SDL_SetColorKey which sets or removes the color key used for the dsdl making pixels
of the same color transparent
void colorKey
(
std .typecons .Nullable!(dsdl.pixels.Color) newColorKey
) @property @trusted;
Parameters
| Name | Description |
|---|---|
| newColorKey | dsdl specifying pixels that get transparency; null to remove the color key |
Throws
dsdl if color key unable to set or removed