Function fermium::renderer::SDL_RenderCopy
source · 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
Expand description
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, orNULL
for the entire texture.dstrect
A pointer to the destination rectangle, orNULL
for the entire rendering target.
Returns: 0 on success, or -1 on error