Safe Haskell | None |
---|---|
Language | Haskell2010 |
SDL.Data.Texture
Contents
- class Renderable rend tex where
- class Texture tex where
- class Renderer rend where
- newtype RawTexture = RawTexture {}
Documentation
class Renderable rend tex where #
This class modells that something can be rendered to another thing.
Minimal complete definition
Methods
copyEx :: rend -> tex -> Maybe (Rectangle Int) -> Maybe (Rectangle Int) -> Double -> Maybe (Point V2 Int) -> V2 Bool -> IO () #
createTexture :: rend -> PixelFormat -> TextureAccess -> V2 Int -> IO tex #
rendererRenderTarget :: rend -> StateVar (Maybe tex) #
Instances
Minimal complete definition
textureAlphaMod, textureColorMod, textureBlendMode, textureWidth, textureHeight, destroyTexture
Methods
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 () #
Bindings for low level sdl2
newtype RawTexture #
Wrapper around the raw Texture type from SDL package.
Constructors
RawTexture | |
Fields |
Instances