Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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 ()
- removeGeometry :: GLES => Geometry is -> Draw ()
- removeTexture :: BackendIO => Texture -> Draw ()
- removeProgram :: GLES => Program gs is -> 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
.
removeGeometry :: GLES => Geometry is -> Draw () Source
removeTexture :: BackendIO => Texture -> Draw () Source
removeProgram :: GLES => Program gs is -> Draw () Source
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.