sdl2-gfx-0.2: Bindings to SDL2_gfx.

Copyright(c) 2015 Siniša Biđin
LicenseMIT
Maintainersinisa@bidin.eu
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

SDL.Raw.Primitive

Description

Raw bindings to the SDL2_gfx library, specifically the primitives drawing functionality from SDL2_gfxPrimitives.h.

Synopsis

Documentation

type X = Int16 Source #

The position of something on the x-axis.

type Y = Int16 Source #

Same as X, but for the y-axis.

type Rad = Int16 Source #

A radius.

type R = Word8 Source #

The red color component.

type N = CInt Source #

How many of a certain thing, e.g. how many points, or steps.

type G = Word8 Source #

The green color component.

type B = Word8 Source #

The blue color component.

type A = Word8 Source #

The alpha color component.

pixel :: MonadIO m => Renderer -> X -> Y -> R -> G -> B -> A -> m CInt Source #

type L = Int16 Source #

A length.

hline :: MonadIO m => Renderer -> X -> Y -> L -> R -> G -> B -> A -> m CInt Source #

vline :: MonadIO m => Renderer -> X -> Y -> L -> R -> G -> B -> A -> m CInt Source #

line :: MonadIO m => Renderer -> X -> Y -> X -> Y -> R -> G -> B -> A -> m CInt Source #

aaLine :: MonadIO m => Renderer -> X -> Y -> X -> Y -> R -> G -> B -> A -> m CInt Source #

type W = Int16 Source #

A width.

thickLine :: MonadIO m => Renderer -> X -> Y -> X -> Y -> W -> R -> G -> B -> A -> m CInt Source #

bezier :: MonadIO m => Renderer -> Ptr X -> Ptr Y -> N -> N -> R -> G -> B -> A -> m CInt Source #

rectangle :: MonadIO m => Renderer -> X -> Y -> X -> Y -> R -> G -> B -> A -> m CInt Source #

roundedRectangle :: MonadIO m => Renderer -> X -> Y -> X -> Y -> Rad -> R -> G -> B -> A -> m CInt Source #

box :: MonadIO m => Renderer -> X -> Y -> X -> Y -> R -> G -> B -> A -> m CInt Source #

roundedBox :: MonadIO m => Renderer -> X -> Y -> X -> Y -> Rad -> R -> G -> B -> A -> m CInt Source #

circle :: MonadIO m => Renderer -> X -> Y -> Rad -> R -> G -> B -> A -> m CInt Source #

aaCircle :: MonadIO m => Renderer -> X -> Y -> Rad -> R -> G -> B -> A -> m CInt Source #

filledCircle :: MonadIO m => Renderer -> X -> Y -> Rad -> R -> G -> B -> A -> m CInt Source #

type Deg = Int16 Source #

Degrees.

arc :: MonadIO m => Renderer -> X -> Y -> Rad -> Deg -> Deg -> R -> G -> B -> A -> m CInt Source #

ellipse :: MonadIO m => Renderer -> X -> Y -> Rad -> Rad -> R -> G -> B -> A -> m CInt Source #

aaEllipse :: MonadIO m => Renderer -> X -> Y -> Rad -> Rad -> R -> G -> B -> A -> m CInt Source #

filledEllipse :: MonadIO m => Renderer -> X -> Y -> Rad -> Rad -> R -> G -> B -> A -> m CInt Source #

pie :: MonadIO m => Renderer -> X -> Y -> Rad -> Deg -> Deg -> R -> G -> B -> A -> m CInt Source #

filledPie :: MonadIO m => Renderer -> X -> Y -> Rad -> Deg -> Deg -> R -> G -> B -> A -> m CInt Source #

trigon :: MonadIO m => Renderer -> X -> Y -> X -> Y -> X -> Y -> R -> G -> B -> A -> m CInt Source #

aaTrigon :: MonadIO m => Renderer -> X -> Y -> X -> Y -> X -> Y -> R -> G -> B -> A -> m CInt Source #

filledTrigon :: MonadIO m => Renderer -> X -> Y -> X -> Y -> X -> Y -> R -> G -> B -> A -> m CInt Source #

polygon :: MonadIO m => Renderer -> Ptr X -> Ptr Y -> N -> R -> G -> B -> A -> m CInt Source #

aaPolygon :: MonadIO m => Renderer -> Ptr X -> Ptr Y -> N -> R -> G -> B -> A -> m CInt Source #

filledPolygon :: MonadIO m => Renderer -> Ptr X -> Ptr Y -> N -> R -> G -> B -> A -> m CInt Source #

texturedPolygon :: MonadIO m => Renderer -> Ptr X -> Ptr Y -> N -> Ptr Surface -> X -> Y -> R -> G -> B -> A -> m CInt Source #