Copyright | (c) 2016 Martin Buck |
---|---|
License | see LICENSE |
Safe Haskell | None |
Language | Haskell2010 |
Containing class definitions used within HGE2D
- class Dynamic a where
- class GlRender a where
- class GlInstructable a where
- class HasBoundingBox a where
- class IsPhysicalObject a where
- class Positioned a where
- class Moveable a where
- class Acceleratable a where
Documentation
class Dynamic a where Source #
For types which are affected by time
moveInTime :: Millisecond -> a -> a Source #
class GlRender a where Source #
For types than can be directly rendered to GL (only required by the engine) Use GlInstructable to define your rendereble types
class GlInstructable a where Source #
For types which can be turned into render instructions to be rendered by the engine
toGlInstruction :: a -> RenderInstruction Source #
class HasBoundingBox a where Source #
For types which have a bounding box
getBB :: a -> BoundingBox Source #
class IsPhysicalObject a where Source #
For types which have / are a physical object
getPhys :: a -> PhysicalObject Source #
setPhys :: PhysicalObject -> a -> a Source #
class Positioned a where Source #
For types which are positioned in space