SDL_SetRenderDrawColorFloat

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

Set the color for drawing or filling rectangles, lines, and points, and for SDL_RenderClear.

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

Parameters

renderer SDL_Renderer*

The rendering context.

r float

The red value used to draw on the rendering target.

g float

The green value used to draw on the rendering target.

b float

The blue value used to draw on the rendering target.

a float

The alpha value used to draw on the rendering target. Use SDL_SetRenderDrawBlendMode to specify how the alpha channel is used.

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