call-0.0: The call game engine

Copyright(c) Fumiaki Kinoshita 2014
LicenseBSD3
MaintainerFumiaki Kinoshita <fumiexcel@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Call.Picture

Description

 

Synopsis

Documentation

class Functor p => Affine p where Source

Minimal complete definition

scale, translate

Methods

rotateR :: Double -> p a -> p a infixr 5 Source

(radians)

rotateD :: Double -> p a -> p a infixr 5 Source

(degrees)

scale :: Vec2 -> p a -> p a infixr 5 Source

translate :: Vec2 -> p a -> p a infixr 5 Source

Instances

class Affine p => Picture2D p where Source

The class of types that can be regarded as a kind of picture.

Methods

bitmap :: Bitmap -> p () Source

Construct a Picture2D from a Bitmap.

bitmapOnce :: Bitmap -> p () Source

Same as bitmap, but it does not create a cache.

line :: [Vec2] -> p () Source

polygon :: [Vec2] -> p () Source

polygonOutline :: [Vec2] -> p () Source

circle :: Double -> p () Source

circleOutline :: Double -> p () Source

thickness :: Float -> p a -> p a infixr 5 Source

color :: Color -> p a -> p a infixr 5 Source

blendMode :: BlendMode -> p a -> p a infixr 5 Source

Instances

Given TextureStorage => Picture2D IO 
Picture2D Picture 

newtype Picture a Source

Constructors

Picture 

Fields

runPicture :: forall m. (Applicative m, Monad m, Picture2D m) => m a