| Copyright | (c) 2015 Siniša Biđin |
|---|---|
| License | MIT |
| Maintainer | sinisa@bidin.eu |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
SDL.Rotozoom
Description
Bindings to SDL2_gfx's surface rotation and zoom functionality.
- type Angle = Double
- type Zoom = Double
- data Smooth
- rotozoom :: MonadIO m => Surface -> Angle -> Zoom -> Smooth -> m Surface
- rotozoomXY :: MonadIO m => Surface -> Angle -> Zoom -> Zoom -> Smooth -> m Surface
- type Size = V2 CInt
- rotozoomSize :: MonadIO m => Size -> Angle -> Zoom -> m Size
- rotozoomSizeXY :: MonadIO m => Size -> Angle -> Zoom -> Zoom -> m Size
- zoom :: MonadIO m => Surface -> Zoom -> Smooth -> m Surface
- zoomXY :: MonadIO m => Surface -> Zoom -> Zoom -> Smooth -> m Surface
- zoomSize :: MonadIO m => Size -> Zoom -> m Size
- zoomSizeXY :: MonadIO m => Size -> Angle -> Zoom -> m Size
- shrink :: MonadIO m => Surface -> CInt -> CInt -> m Surface
- rotate90 :: MonadIO m => Surface -> Int -> m Surface
Documentation
Whether resulting Surfaces are anti-aliased or not.
rotozoomSizeXY :: MonadIO m => Size -> Angle -> Zoom -> Zoom -> m Size Source #
Same as rotozoomSize, but for different horizontal and vertical scaling
factors.
zoomSizeXY :: MonadIO m => Size -> Angle -> Zoom -> m Size Source #
Same as zoomSize, but for different horizontal and vertical scaling
factors.