sdl_layer <-
scale: {stretch,fit,fill,none,tile}How the texture is fitted into sdl_layer<-area. stretch
makes it exactly as large as the area; fit (default) makes
it as large as possible while keeping its aspect ratio and centres it; fill
covers the area while keeping the aspect ratio, cutting off what falls
outside;
none shows it at its own size with its hot spot at the
top-left corner of the area. The hot spot is
sdl_texture<-hot_spot
or else the top-left of the texture.
tile repeats the texture at its own size to fill the area,
starting at its top-left corner shifted by sdl_layer<-offset;
flipping, rotating and sdl_layer<-transform
apply to the whole tiled area. Tiles that are not rotated or flipped are
drawn in a single call by renderers that can repeat a texture, provided sdl_layer<-source
is @nil.
Otherwise each tile is drawn separately, so tiling a large area with a
small rotated texture is slow.