Safe Haskell | None |
---|---|
Language | Haskell2010 |
- refDrawCtx :: GLES => Ctx -> Draw a -> IORef DrawState -> IO a
- runDrawCtx :: GLES => Ctx -> Draw a -> DrawState -> IO (a, DrawState)
- execDrawCtx :: GLES => Ctx -> Draw a -> DrawState -> IO DrawState
- evalDrawCtx :: GLES => Ctx -> Draw a -> DrawState -> IO a
- drawInit :: GLES => Draw ()
- drawState :: GLES => Int -> Int -> IO DrawState
- drawBegin :: GLES => Draw ()
- drawLayer :: GLES => Layer -> Draw ()
- drawEnd :: GLES => Draw ()
- drawGet :: Draw DrawState
- removeGeometry :: GLES => Geometry is -> Draw ()
- removeTexture :: GLES => Texture -> Draw ()
- removeProgram :: GLES => Program gs is -> Draw ()
- textureUniform :: GLES => Texture -> Draw ActiveTexture
- textureSize :: (GLES, Num a) => Texture -> Draw (a, a)
- resizeViewport :: GLES => Int -> Int -> Draw ()
- renderLayer :: GLES => RenderLayer a -> Draw (a, [Texture])
- gl :: GL a -> Draw a
Documentation
refDrawCtx :: GLES => Ctx -> Draw a -> IORef DrawState -> IO a Source #
Run a Draw action using an IORef and a context.
Create a DrawState
.
textureUniform :: GLES => Texture -> Draw ActiveTexture Source #
This helps you set the uniforms of type Sampler2D
.
renderLayer :: GLES => RenderLayer a -> Draw (a, [Texture]) Source #
Realize a RenderLayer
. It returns the list of allocated Texture
s so
that you can free them if you want.