Function sdl2_sys::SDL_RenderCopy [] [src]

pub unsafe extern "C" fn SDL_RenderCopy(
    renderer: *mut SDL_Renderer,
    texture: *mut SDL_Texture,
    srcrect: *const SDL_Rect,
    dstrect: *const SDL_Rect
) -> c_int

\brief Copy a portion of the texture to the current rendering target.

\param renderer The renderer which should copy parts of a texture. \param texture The source texture. \param srcrect A pointer to the source rectangle, or NULL for the entire texture. \param dstrect A pointer to the destination rectangle, or NULL for the entire rendering target.

\return 0 on success, or -1 on error