HGE2D-0.1.6.2: 2D game engine written in Haskell

Copyright(c) 2016 Martin Buck
Licensesee LICENSE
Safe HaskellNone
LanguageHaskell2010

HGE2D.Types

Description

Containing type definitions used within HGE2D

Synopsis

Documentation

type Second = Int Source #

Time in seconds

type Millisecond = Int Source #

Time in milliseconds

type Degree = Double Source #

Angle in degrees

type Drag = Double Source #

The drag of an object

type Mass = Double Source #

The mass of an object in kg

type Meter = Double Source #

Distance in meters

type MeterPmsec = Double Source #

Velocity in meters per millisecond

type MeterPmsecSqr = Double Source #

Acceleration in meters per millisecond squared

type Pixel = Double Source #

Distance or size in pixels

type Radian = Double Source #

Angle in radians

type RotationAcceleration = Radian Source #

Rotation acceleration in radians per millisecond squared

type RotationSpeed = Radian Source #

Rotation speed in radians per millisecond

type Width = Double Source #

Width of an object

type Height = Double Source #

Height of an object

type PosX = Double Source #

Position in x-direction of an oject

type PosY = Double Source #

Position in y-direction of an object

type Acceleration = (MeterPmsecSqr, MeterPmsecSqr) Source #

Acceleration split in x and y component

type RealPosition = (Meter, Meter) Source #

Position of an object split in x and y component

type Velocity = (MeterPmsec, MeterPmsec) Source #

Velocity of an object split in x and y component

type GlPoint2 = Vertex2 GLfloat Source #

Point in 2D defined by GLfloat values

type GlPoint3 = Vector3 GLfloat Source #

Point in 3D defined by GLfloat values

type GlVer3 = Vertex3 GLfloat Source #

Vertex in 3D defined by GLfloat values

type GlPosX = GLfloat Source #

Position in x-direction defined by GLfloat value

type GlPosY = GLfloat Source #

Position in y-direction defined by GLfloat value

type GlPosZ = GLfloat Source #

Position in z-direction defined by GLfloat value

type GlWidth = GLfloat Source #

Width of an object defined by GLfloat value

type GlHeight = GLfloat Source #

Height of an object defined by GLfloat value

type GlScaleX = GLfloat Source #

Scale in x-direction of an object defined by GLfloat value

type GlScaleY = GLfloat Source #

Scale in y-direction of an object defined by GLfloat value

type GlThickness = GLfloat Source #

Thickness of e.g. a line defined by GLfloat value

type GlRadius = GLfloat Source #

Radius of e.g. a circle defined by GLfloat value

type GlColorRGB = (GLfloat, GLfloat, GLfloat) Source #

RGB color defined by 3 GLfloat values

type GlColorRGBA = (GLfloat, GLfloat, GLfloat, GLfloat) Source #

RGBA color defined by 4 GLfloat values

type GlShape = [GlPoint2] Source #

A shape defined by several points in 2D space