OGL-0.0.2: A context aware binding for the OpenGL graphics system

Portabilityghc
Stabilityexperimental
Maintainerrelapse.dev@gmx.com

Graphics.Rendering.OGL.Monad

Description

GL Contexts:

  • MonadGL a command that can be used in any OpenGL context.
  • GL a basic command that cannot be used between begin/end.
  • PrimitiveGL a primitive command sent during begin/end context.

Synopsis

Documentation

liftIO :: MonadIO m => forall a. IO a -> m a

runGL :: GL a -> IO aSource

runGLA :: Kleisli GL a a -> Kleisli IO a aSource

arrow version of runGL

newtype GL a Source

Constructors

GL (IO a) 

runPrimitive :: PrimitiveGL a -> IO aSource

This is used internally and shouldnt be needed by the user.