Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Renderable rend tex where
- class Texture tex where
- textureAlphaMod :: tex -> StateVar Word8
- textureColorMod :: tex -> StateVar (V3 Word8)
- textureBlendMode :: tex -> StateVar BlendMode
- textureWidth :: tex -> IO Int
- textureHeight :: tex -> IO Int
- textureDims :: tex -> IO (V2 Int)
- destroyTexture :: tex -> IO ()
- class Renderer rend where
- newtype RawTexture = RawTexture {}
Documentation
class Renderable rend tex where Source
This class modells that something can be rendered to another thing.
:: rend | rendering context |
-> tex | texture |
-> Maybe (Rectangle Int) | source rectangle |
-> Maybe (Rectangle Int) | destination rectangle |
-> Double | rotation |
-> Maybe (Point V2 Int) | rotation center |
-> V2 Bool | flipping |
-> IO () |
createTexture :: rend -> PixelFormat -> TextureAccess -> V2 Int -> IO tex Source
rendererRenderTarget :: rend -> StateVar (Maybe tex) Source
class Texture tex where Source
textureAlphaMod :: tex -> StateVar Word8 Source
textureColorMod :: tex -> StateVar (V3 Word8) Source
textureBlendMode :: tex -> StateVar BlendMode Source
textureWidth :: tex -> IO Int Source
textureHeight :: tex -> IO Int Source
textureDims :: tex -> IO (V2 Int) Source
destroyTexture :: tex -> IO () Source
Bindings for low level sdl2
newtype RawTexture Source
Wrapper around the raw Texture type from SDL package.