| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
FWGL.Graphics.Draw
- data Draw a
- data DrawState
- execDraw :: Draw () -> DrawState -> GL DrawState
- drawInit :: (BackendIO, GLES) => Int -> Int -> GL DrawState
- drawBegin :: GLES => Draw ()
- drawLayer :: (GLES, BackendIO) => Layer -> Draw ()
- drawEnd :: GLES => Draw ()
- textureUniform :: (GLES, BackendIO) => Texture -> Draw ActiveTexture
- textureSize :: (GLES, BackendIO, Num a) => Texture -> Draw (a, a)
- setProgram :: GLES => Program g i -> Draw ()
- resize :: GLES => Int -> Int -> GL ()
Documentation
A monad that represents OpenGL actions with some state (DrawState).
Create a DrawState.
textureUniform :: (GLES, BackendIO) => Texture -> Draw ActiveTexture Source
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.