[][src]Function fermium::renderer::SDL_RenderCopy

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

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

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

Returns: 0 on success, or -1 on error