chickadee » sdl2 » render-scale-set!

render-scale rendererprocedure
set! (render-scale-set! renderer) scalessetter
render-scale-set! renderer scalessetter

Get or set the sdl2:renderer's x and y scaling factors. See SDL_RenderGetScale and SDL_RenderSetScale.

  • render-scale returns multiple values, the x and y scaling factors, as floats.
  • The setters accept a list (x-scale y-scale) containing the new scaling factors, as floats.

Requires sdl2 egg 0.2.0 or higher.