fwgl-0.1.3.1: Game engine

Safe HaskellNone
LanguageHaskell2010

FWGL.Graphics.Types

Synopsis

Documentation

newtype Draw a Source

A state monad on top of GL.

Constructors

Draw 

Fields

unDraw :: StateT DrawState GL a
 

data Geometry is Source

A set of attributes and indices.

Constructors

Geometry (AttrList is) [Word16] Int 

Instances

data Group gs is where Source

A group of Objects.

Constructors

Empty :: Group gs is 
Object :: Object gs is -> Group gs is 
Global :: Global g -> Group gs is -> Group (g : gs) is 
Append :: Group gs is -> Group gs' is' -> Group gs'' is'' 

data Object gs is where Source

A geometry associated with some uniforms.

Constructors

(:~>) :: Global g -> Object gs is -> Object (g : gs) is infixr 2 
Mesh :: Geometry is -> Object [] is 
NoMesh :: Object [] [] 

data Global g where Source

The value of a GPU uniform.

Constructors

(:=) :: (Typeable g, UniformCPU c g) => (a -> g) -> Draw c -> Global g infix 3 

data Layer Source

A Group associated with a program.

Constructors

forall oi pi og pg . (Subset pi oi, Subset pg og) => Layer (Program pg pi) (Group og oi) 
SubLayer (RenderLayer [Layer]) 
MultiLayer [Layer] 

data RenderLayer a Source

Represents a Layer drawn on a Texture.

data LayerType Source

Constructors

ColorLayer 
DepthLayer 

Instances