| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
SDL.Data.Texture
- 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
Documentation
class Renderable rend tex where Source
This class modells that something can be rendered to another thing.
Methods
Arguments
| :: 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
Instances
class Texture tex where Source
Minimal complete definition
textureAlphaMod, textureColorMod, textureBlendMode, textureWidth, textureHeight, destroyTexture
Methods
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