caramia-0.7.1.1: High-level OpenGL bindings

Safe HaskellNone
LanguageHaskell2010

Graphics.Caramia.Internal.OpenGLCApi

Description

Module for using the raw OpenGL API.

This is a mixture from the OpenGLRaw package and some of our own stuff.

TODO: Some of this stuff should probably be in OpenGLRaw so we could add stuff there instead.

Synopsis

Documentation

gi :: MonadIO m => GLenum -> m GLuint Source

Shortcut to glGetIntegerv when you query only one integer.

withBoundVAO :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a Source

withBoundBuffer :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a Source

withBoundProgram :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a Source