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

Safe HaskellNone
LanguageHaskell2010

FWGL.Utils

Synopsis

Documentation

screenScale :: SF (Input a) M3

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

perspective4

Arguments

:: Float

Far

-> Float

Near

-> Float

FOV

-> SF (Input a) M4 

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

perspectiveView

Arguments

:: Float

Far

-> Float

Near

-> Float

FOV

-> SF (Input a, M4) M4 

Combine a perspective and a view matrix.