Name
sdl.RenderSetViewport -- set viewport
Synopsis
sdl.RenderSetViewport(display[, x, y, w, h])
Function
Use this function to set the drawing area for rendering on the current target. If you leave out the optional arguments, the viewport is set to the entire target. When the window is resized, the current viewport is automatically centered within the new window size.

Inputs
display
identifier of display whose renderer should be used
x
optional: the x coordinate of the upper left corner
y
optional: the y coordinate of the upper left corner
w
optional: the rectangle width
h
optional: the rectangle height

Show TOC