Desired rotation in degrees.
Modulesdl2-gfx-0.3.0.0Haskell2010
SDL.Rotozoom
Bindings to SDL2_gfx's surface rotation and zoom functionality.
- 4 types
- 10 values
- Packagesdl2-gfx-0.3.0.0
- Exports14
- LanguageHaskell2010
- LicenceMIT
- SourceRotozoom.hs
A dimension scaling factor.
Instances8Bounded, Enum, Eq, Ord, Read, Show, …
Bounded SmoothDefined in sdl2-gfx-0.3.0.0 · SDL.RotozoomEnum SmoothDefined in sdl2-gfx-0.3.0.0 · SDL.RotozoomEq SmoothDefined in sdl2-gfx-0.3.0.0 · SDL.RotozoomOrd SmoothDefined in sdl2-gfx-0.3.0.0 · SDL.RotozoomRead SmoothDefined in sdl2-gfx-0.3.0.0 · SDL.RotozoomShow SmoothDefined in sdl2-gfx-0.3.0.0 · SDL.RotozoomGeneric SmoothDefined in sdl2-gfx-0.3.0.0 · SDL.Rotozoomtype Rep Smooth = D1 ('MetaDataDefined in sdl2-gfx-0.3.0.0 · SDL.Rotozoom"Smooth"
"SDL.Rotozoom"
"sdl2-gfx-0.3.0.0-1yvdpTMQ4M19ovvn1UIFTQ"
'False) (C1 ('MetaCons"Smooth"
'PrefixI 'False) U1 :+: C1 ('MetaCons"Rough"
'PrefixI 'False) U1)
A surface size, packing width and height.
Same as rotozoomSize, but for different horizontal and vertical scaling factors.
Same as zoomSize, but for different horizontal and vertical scaling factors.
Given a number of clockwise rotations to perform, rotates Surface in increments of 90 degrees.
Since no interpolation is done, this is faster than rotozoomer.