Name
sdl.RenderSetScale -- set scaling factors
Synopsis
sdl.RenderSetScale(display, scalex, scaley)
Function
Use this function to set the drawing scale for rendering on the current target. The drawing coordinates are scaled by the x/y scaling factors before they are used by the renderer. This allows resolution independent drawing with a single coordinate system.

If this results in scaling or subpixel drawing by the rendering backend, it will be handled using the appropriate quality hints. For best results use integer scaling factors.

Inputs
display
identifier of display whose renderer should be used
scalex
the horizontal scaling factor
scaley
the vertical scaling factor

Show TOC