SDL_GetRenderDrawColorFloat

Get the color used for drawing operations (Rect, Line and Clear).

extern (C) nothrow @nogc extern
bool
SDL_GetRenderDrawColorFloat
(,
float* r
,
float* g
,
float* b
,
float* a
)

Parameters

renderer SDL_Renderer*

The rendering context.

r float*

A pointer filled in with the red value used to draw on the rendering target.

g float*

A pointer filled in with the green value used to draw on the rendering target.

b float*

A pointer filled in with the blue value used to draw on the rendering target.

a float*

A pointer filled in with the alpha value used to draw on the rendering target.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta