Copyright | (c) 2016 Martin Buck |
---|---|
License | see LICENSE |
Safe Haskell | None |
Language | Haskell2010 |
HGE2D.Classes
Description
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
Minimal complete definition
Methods
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
Minimal complete definition
class GlInstructable a where Source #
For types which can be turned into render instructions to be rendered by the engine
Minimal complete definition
Methods
toGlInstruction :: a -> RenderInstruction Source #
class HasBoundingBox a where Source #
For types which have a bounding box
Minimal complete definition
Methods
getBB :: a -> BoundingBox Source #
class IsPhysicalObject a where Source #
For types which have / are a physical object
class Positioned a where Source #
For types which are positioned in space