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 Source

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

Methods

copyEx Source

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

class Renderer rend where Source

Methods

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

clear :: rend -> IO () Source

present :: rend -> IO () Source

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

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

Bindings for low level sdl2

newtype RawTexture Source

Wrapper around the raw Texture type from SDL package.

Constructors

RawTexture