Function sdl2_sys::SDL_FillRect

source ·
pub unsafe extern "C" fn SDL_FillRect(
    dst: *mut SDL_Surface,
    rect: *const SDL_Rect,
    color: Uint32
) -> c_int
Expand description

Performs a fast fill of the given rectangle with \c color.

If \c rect is NULL, the whole surface will be filled with \c color.

The color should be a pixel of the format used by the surface, and can be generated by the SDL_MapRGB() function.

\return 0 on success, or -1 on error.