fwgl-0.1.0.2: FRP 2D/3D game engine

Safe HaskellNone
LanguageHaskell2010

FWGL.Graphics.Types

Synopsis

Documentation

newtype Draw a Source

Constructors

Draw 

Fields

unDraw :: StateT DrawState GL a
 

data Geometry is Source

Constructors

Geometry (AttrList is) [Word16] Int 

Instances

data Mesh is where Source

A static or dinamic geometry.

Constructors

Empty :: Mesh [] 
Cube :: Mesh Geometry3 
StaticGeom :: Geometry is -> Mesh is 
DynamicGeom :: Geometry is -> Geometry is -> Mesh is 

data Object gs is where Source

An object is a set of geometries associated with some uniforms.

Constructors

ObjectEmpty :: Object gs is 
ObjectMesh :: Mesh is -> Object gs is 
ObjectGlobal :: (Typeable g, UniformCPU c g) => g -> Draw c -> Object gs is -> Object gs' is 
ObjectAppend :: Object gs is -> Object gs' is' -> Object gs'' is'' 

data Layer Source

An object associated with a program.

Constructors

forall oi pi og pg . (Subset oi pi, Subset og pg) => Layer (Program pg pi) (Object og oi)