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.
- gi :: GLenum -> IO GLuint
- gf :: GLenum -> IO GLfloat
- withBoundVAO :: GLuint -> IO a -> IO a
- withBoundBuffer :: GLuint -> IO a -> IO a
- withBoundElementBuffer :: GLuint -> IO a -> IO a
- withBoundPixelUnpackBuffer :: GLuint -> IO a -> IO a
- withBoundProgram :: GLuint -> IO a -> IO a
- withBoundDrawFramebuffer :: GLuint -> IO a -> IO a
- setBoundProgram :: GLuint -> IO ()
- setBoundElementBuffer :: GLuint -> IO ()
- mglDeleteBuffer :: GLuint -> IO ()
- mglGenBuffer :: IO GLuint
- mglDeleteVertexArray :: GLuint -> IO ()
- mglGenVertexArray :: IO GLuint
- mglDeleteFramebuffer :: GLuint -> IO ()
- mglGenFramebuffer :: IO GLuint
- mglNamedBufferData :: GLuint -> GLsizeiptr -> Ptr () -> GLenum -> 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 ())
- mglUnmapNamedBuffer :: GLuint -> IO GLboolean
- mglNamedCopyBufferSubData :: GLuint -> GLuint -> GLintptr -> GLintptr -> GLsizeiptr -> IO ()
Documentation
withBoundVAO :: GLuint -> IO a -> IO a Source
withBoundBuffer :: GLuint -> IO a -> IO a Source
withBoundElementBuffer :: GLuint -> IO a -> IO a Source
withBoundPixelUnpackBuffer :: GLuint -> IO a -> IO a Source
withBoundProgram :: GLuint -> IO a -> IO a Source
withBoundDrawFramebuffer :: GLuint -> IO a -> IO a Source
setBoundProgram :: GLuint -> IO () Source
setBoundElementBuffer :: GLuint -> IO () Source
mglDeleteBuffer :: GLuint -> IO () Source
mglDeleteVertexArray :: GLuint -> IO () Source
mglDeleteFramebuffer :: GLuint -> IO () Source
mglNamedBufferData :: GLuint -> GLsizeiptr -> Ptr () -> GLenum -> 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 ()) Source
mglNamedCopyBufferSubData :: GLuint -> GLuint -> GLintptr -> GLintptr -> GLsizeiptr -> IO () Source