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

Safe HaskellNone
LanguageHaskell2010

FWGL.Graphics.Draw

Synopsis

Documentation

data Draw a Source

A monad that represents OpenGL actions with some state (DrawState).

data DrawState Source

The state of the Draw monad.

execDraw Source

Arguments

:: Draw ()

Action.

-> DrawState

State.

-> GL DrawState 

Execute a Draw action.

drawInit Source

Arguments

:: (BackendIO, GLES) 
=> Int

Viewport width

-> Int

Viewport height

-> GL DrawState 

Create a DrawState.

drawBegin :: GLES => Draw () Source

Clear the buffers.

drawLayer :: (GLES, BackendIO) => Layer -> Draw () Source

Draw a Layer.

textureSize :: (GLES, BackendIO, Num a) => Texture -> Draw (a, a) Source

Get the dimensions of a Texture.

setProgram :: GLES => Program g i -> Draw () Source

Set the program.

resize Source

Arguments

:: GLES 
=> Int

Width.

-> Int

Height.

-> GL () 

Viewport.