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

Safe HaskellNone
LanguageHaskell2010

FWGL.Utils

Synopsis

Documentation

screenScale :: SF Input M3 Source

Generate a view matrix that transforms the pixel coordinates in OpenGL coordinates.

perspective4 Source

Arguments

:: Float

Far

-> Float

Near

-> Float

FOV

-> SF Input M4 

Generate a perspective view matrix using the aspect ratio of the framebuffer.

perspectiveView Source

Arguments

:: Float

Far

-> Float

Near

-> Float

FOV

-> SF (Input, M4) M4 

Combine a perspective and a view matrix.