Function sdl2_sys::SDL_SetRenderDrawColor
source ยท pub unsafe extern "C" fn SDL_SetRenderDrawColor(
renderer: *mut SDL_Renderer,
r: Uint8,
g: Uint8,
b: Uint8,
a: Uint8,
) -> c_int
Expand description
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().
\param renderer the rendering context
\param r the red value used to draw on the rendering target
\param g the green value used to draw on the rendering target
\param b the blue value used to draw on the rendering target
\param a the alpha value used to draw on the rendering target; usually
SDL_ALPHA_OPAQUE
(255). Use SDL_SetRenderDrawBlendMode to
specify how the alpha channel is used
\returns 0 on success or a negative error code on failure; call
SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_GetRenderDrawColor \sa SDL_RenderClear \sa SDL_RenderDrawLine \sa SDL_RenderDrawLines \sa SDL_RenderDrawPoint \sa SDL_RenderDrawPoints \sa SDL_RenderDrawRect \sa SDL_RenderDrawRects \sa SDL_RenderFillRect \sa SDL_RenderFillRects