sdl2-compositor-1.2.0.5: image compositing with sdl2 - declarative style

Safe HaskellNone
LanguageHaskell2010

SDL.Data.Texture

Contents

Synopsis

Documentation

class Renderable rend tex where #

This class modells that something can be rendered to another thing.

Minimal complete definition

copyEx, createTexture, rendererRenderTarget

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) #

class Renderer rend where #

Minimal complete definition

rendererDrawColor, clear, present, drawRect, drawLine

Methods

rendererDrawColor :: rend -> StateVar (V4 Word8) #

clear :: rend -> IO () #

present :: rend -> IO () #

drawRect :: rend -> Maybe (Rectangle Int) -> IO () #

drawLine :: rend -> Point V2 Int -> Point V2 Int -> IO () #

Bindings for low level sdl2