call-0.1: The call game engine

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

Call.Picture

Description

 

Documentation

class Affine a where

Associated Types

type Vec a :: *

type Normal a :: *

Methods

rotateOn :: Normal a -> a -> a

scale :: Vec a -> a -> a

translate :: Vec a -> a -> a

Instances

newtype Picture

Constructors

Picture 

Fields

unPicture :: forall r. r -> (r -> r -> r) -> (Bitmap -> PrimitiveMode -> Vector Vertex -> r) -> (M44 Float -> r -> r) -> ((M44 Float -> M44 Float) -> r -> r) -> r
 

data Vertex

Constructors

Vertex 

Fields

vPos :: !(V3 Float)
 
vUV :: !(V2 Float)
 

Instances