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

Safe HaskellNone
LanguageHaskell2010

FWGL

Description

The main module. You should also import a backend:

  • FWGL.Backend.JavaScript: GHCJS/WebGL backend (contained in fwgl-javascript)
  • FWGL.Backend.GLFW.GL20: GLFW/OpenGL 2.0 backend (contained in fwgl-glfw)

And a graphics system:

FWGL.Shader contains the EDSL to make custom shaders.

Synopsis

Documentation

module FWGL.Audio

module FWGL.Input

module FWGL.Utils

module FRP.Yampa

draw :: BackendIO => [Layer] -> Output Source

Draw some layers.

run Source

Arguments

:: BackendIO 
=> SF (Input ()) Output

Main signal

-> IO () 

Run a FWGL program.

run' Source

Arguments

:: BackendIO 
=> IO inp

An IO effect generating the custom inputs.

-> SF (Input inp) Output 
-> IO () 

Run a FWGL program, using custom inputs.

data Output Source

The general output.

(.>) :: Output -> Output -> Output Source

Compose two Output effects.

io :: IO () -> Output Source

Perform an IO action.