Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
- openGLVersion :: OpenGLVersion
- data OpenGLVersion = OpenGLVersion !Int !Int
- gi :: MonadIO m => GLenum -> m GLuint
- gf :: MonadIO m => GLenum -> m GLfloat
- withBoundVAO :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a
- withBoundBuffer :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a
- withBoundElementBuffer :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a
- withBoundPixelUnpackBuffer :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a
- withBoundProgram :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a
- withBoundDrawFramebuffer :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a
- setBoundProgram :: MonadIO m => GLuint -> m ()
- setBoundElementBuffer :: GLuint -> IO ()
- mglDeleteBuffer :: GLuint -> IO ()
- mglGenBuffer :: IO GLuint
- mglDeleteVertexArray :: GLuint -> IO ()
- mglGenVertexArray :: IO GLuint
- mglDeleteFramebuffer :: GLuint -> IO ()
- mglGenFramebuffer :: IO GLuint
- mglDeleteQuery :: GLuint -> IO ()
- mglGenQuery :: IO GLuint
- mglNamedBufferData :: GLuint -> GLsizeiptr -> Ptr a -> GLenum -> IO ()
- mglNamedBufferStorage :: GLuint -> GLsizeiptr -> Ptr a -> GLbitfield -> IO ()
- mglVertexArrayVertexAttribOffsetAndEnable :: GLuint -> GLuint -> GLuint -> GLint -> GLenum -> GLboolean -> GLsizei -> CPtrdiff -> IO ()
- mglVertexArrayVertexAttribIOffsetAndEnable :: GLuint -> GLuint -> GLuint -> GLint -> GLenum -> GLsizei -> GLintptr -> IO ()
- mglVertexArrayVertexAttribDivisor :: GLuint -> GLuint -> GLuint -> IO ()
- mglProgramUniform1ui :: GLuint -> GLint -> GLuint -> IO ()
- mglProgramUniform2ui :: GLuint -> GLint -> GLuint -> GLuint -> IO ()
- mglProgramUniform3ui :: GLuint -> GLint -> GLuint -> GLuint -> GLuint -> IO ()
- mglProgramUniform4ui :: GLuint -> GLint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ()
- mglProgramUniform1i :: GLuint -> GLint -> GLint -> IO ()
- mglProgramUniform2i :: GLuint -> GLint -> GLint -> GLint -> IO ()
- mglProgramUniform3i :: GLuint -> GLint -> GLint -> GLint -> GLint -> IO ()
- mglProgramUniform4i :: GLuint -> GLint -> GLint -> GLint -> GLint -> GLint -> IO ()
- mglProgramUniform1f :: GLuint -> GLint -> GLfloat -> IO ()
- mglProgramUniform2f :: GLuint -> GLint -> GLfloat -> GLfloat -> IO ()
- mglProgramUniform3f :: GLuint -> GLint -> GLfloat -> GLfloat -> GLfloat -> IO ()
- mglProgramUniform4f :: GLuint -> GLint -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> IO ()
- mglProgramUniformMatrix4fv :: GLuint -> GLint -> GLsizei -> GLboolean -> Ptr GLfloat -> IO ()
- mglProgramUniformMatrix3fv :: GLuint -> GLint -> GLsizei -> GLboolean -> Ptr GLfloat -> IO ()
- mglMapNamedBufferRange :: GLuint -> GLintptr -> GLsizeiptr -> GLbitfield -> IO (Ptr a)
- mglUnmapNamedBuffer :: GLuint -> IO GLboolean
- mglNamedCopyBufferSubData :: GLuint -> GLuint -> GLintptr -> GLintptr -> GLsizeiptr -> IO ()
- mglFlushMappedNamedBufferRange :: GLuint -> GLintptr -> GLsizei -> IO ()
Documentation
data OpenGLVersion Source
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
withBoundElementBuffer :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a Source
withBoundPixelUnpackBuffer :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a Source
withBoundProgram :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a Source
withBoundDrawFramebuffer :: (MonadIO m, MonadMask m) => GLuint -> m a -> m a Source
setBoundProgram :: MonadIO m => GLuint -> m () Source
setBoundElementBuffer :: GLuint -> IO () Source
mglDeleteBuffer :: GLuint -> IO () Source
mglDeleteVertexArray :: GLuint -> IO () Source
mglDeleteFramebuffer :: GLuint -> IO () Source
mglDeleteQuery :: GLuint -> IO () Source
mglNamedBufferData :: GLuint -> GLsizeiptr -> Ptr a -> GLenum -> IO () Source
mglNamedBufferStorage :: GLuint -> GLsizeiptr -> Ptr a -> GLbitfield -> IO () Source
mglVertexArrayVertexAttribOffsetAndEnable :: GLuint -> GLuint -> GLuint -> GLint -> GLenum -> GLboolean -> GLsizei -> CPtrdiff -> IO () Source
mglVertexArrayVertexAttribIOffsetAndEnable :: GLuint -> GLuint -> GLuint -> GLint -> GLenum -> GLsizei -> GLintptr -> IO () Source
mglProgramUniformMatrix4fv :: GLuint -> GLint -> GLsizei -> GLboolean -> Ptr GLfloat -> IO () Source
mglProgramUniformMatrix3fv :: GLuint -> GLint -> GLsizei -> GLboolean -> Ptr GLfloat -> IO () Source
mglMapNamedBufferRange :: GLuint -> GLintptr -> GLsizeiptr -> GLbitfield -> IO (Ptr a) Source
mglNamedCopyBufferSubData :: GLuint -> GLuint -> GLintptr -> GLintptr -> GLsizeiptr -> IO () Source