linear-opengl-0.3.0.0: Isomorphisms between linear and OpenGL types

Safe HaskellNone
LanguageHaskell2010

Linear.OpenGL

Contents

Description

In addition to providing isomorphisms between GL and linear vector, point, and matrix types, this module also provides Uniform instances for linear's matrix types.

Synopsis

Matrices

m44GLmatrix :: MatrixComponent a => Iso' (M44 a) (GLmatrix a) Source #

An isomorphism between GL and linear four-dimensional matrices

Points

vertex1P :: Iso' (Point V1 a) (Vertex1 a) Source #

An isomorphism between GL and linear one-dimensional points

vertex2P :: Iso' (Point V2 a) (Vertex2 a) Source #

An isomorphism between GL and linear two-dimensional points

vertex3P :: Iso' (Point V3 a) (Vertex3 a) Source #

An isomorphism between GL and linear three-dimensional points

vertex4P :: Iso' (Point V4 a) (Vertex4 a) Source #

An isomorphism between GL and linear four-dimensional points

Vectors

vector1V :: Iso' (V1 a) (Vector1 a) Source #

An isomorphism between GL and linear one-dimensional vectors

vector2V :: Iso' (V2 a) (Vector2 a) Source #

An isomorphism between GL and linear two-dimensional vectors

vector3V :: Iso' (V3 a) (Vector3 a) Source #

An isomorphism between GL and linear three-dimensional vectors

vector4V :: Iso' (V4 a) (Vector4 a) Source #

An isomorphism between GL and linear four-dimensional vectors