[−][src]Function fermium::renderer::SDL_RenderSetViewport
pub unsafe extern "C" fn SDL_RenderSetViewport(
renderer: *mut SDL_Renderer,
rect: *const SDL_Rect
) -> c_int
Set the drawing area for rendering on the current target.
renderer
The renderer for which the drawing area should be set.rect
The rectangle representing the drawing area, or NULL to set the viewport to the entire target.
The x,y of the viewport rect represents the origin for rendering.
Returns: 0 on success, or -1 on error
If the window associated with the renderer is resized, the viewport is automatically reset.
See Also: SDL_RenderGetViewport
, SDL_RenderSetLogicalSize