gl-0.8.0: Complete OpenGL raw bindings

Safe HaskellNone
LanguageHaskell2010

Graphics.GL.Standard15

Contents

Synopsis

Graphics.GL.Standard15

glBindBuffer :: MonadIO m => GLenum -> GLuint -> m () Source #

Usage: glBindBuffer target buffer

The parameter target is a BufferTargetARB.

Manual page: https://www.opengl.org/sdk/docs/man/html/glBindBuffer.xhtml

glBufferData :: MonadIO m => GLenum -> GLsizeiptr -> Ptr () -> GLenum -> m () Source #

Usage: glBufferData target size data usage

The parameter target is a BufferTargetARB.

The parameter size is a BufferSize.

The parameter usage is a BufferUsageARB.

The length of data should be size.

Manual page: https://www.opengl.org/sdk/docs/man/html/glBufferData.xhtml

glBufferSubData :: MonadIO m => GLenum -> GLintptr -> GLsizeiptr -> Ptr () -> m () Source #

Usage: glBufferSubData target offset size data

The parameter target is a BufferTargetARB.

The parameter offset is a BufferOffset.

The parameter size is a BufferSize.

The length of data should be size.

Manual page: https://www.opengl.org/sdk/docs/man/html/glBufferSubData.xhtml

glDeleteBuffers :: MonadIO m => GLsizei -> Ptr GLuint -> m () Source #

Usage: glDeleteBuffers n buffers

The length of buffers should be n.

Manual page: https://www.opengl.org/sdk/docs/man/html/glDeleteBuffers.xhtml

glEndQuery :: MonadIO m => GLenum -> m () Source #

Usage: glEndQuery target

glGenBuffers :: MonadIO m => GLsizei -> Ptr GLuint -> m () Source #

Usage: glGenBuffers n buffers

The length of buffers should be n.

Manual page: https://www.opengl.org/sdk/docs/man/html/glGenBuffers.xhtml

glGenQueries :: MonadIO m => GLsizei -> Ptr GLuint -> m () Source #

Usage: glGenQueries n ids

The length of ids should be n.

Manual page: https://www.opengl.org/sdk/docs/man/html/glGenQueries.xhtml

glGetBufferParameteriv :: MonadIO m => GLenum -> GLenum -> Ptr GLint -> m () Source #

Usage: glGetBufferParameteriv target pname params

The parameter target is a BufferTargetARB.

The parameter pname is a BufferPNameARB.

The length of params should be COMPSIZE(pname).

glGetBufferPointerv :: MonadIO m => GLenum -> GLenum -> Ptr (Ptr ()) -> m () Source #

Usage: glGetBufferPointerv target pname params

The parameter target is a BufferTargetARB.

The parameter pname is a BufferPointerNameARB.

The length of params should be 1.

Manual page: https://www.opengl.org/sdk/docs/man/html/glGetBufferPointerv.xhtml

glGetBufferSubData :: MonadIO m => GLenum -> GLintptr -> GLsizeiptr -> Ptr () -> m () Source #

Usage: glGetBufferSubData target offset size data

The parameter target is a BufferTargetARB.

The parameter offset is a BufferOffset.

The parameter size is a BufferSize.

The length of data should be size.

Manual page: https://www.opengl.org/sdk/docs/man/html/glGetBufferSubData.xhtml

glGetQueryObjectiv :: MonadIO m => GLuint -> GLenum -> Ptr GLint -> m () Source #

Usage: glGetQueryObjectiv id pname params

The length of params should be COMPSIZE(pname).

glGetQueryObjectuiv :: MonadIO m => GLuint -> GLenum -> Ptr GLuint -> m () Source #

Usage: glGetQueryObjectuiv id pname params

The length of params should be COMPSIZE(pname).

glGetQueryiv :: MonadIO m => GLenum -> GLenum -> Ptr GLint -> m () Source #

Usage: glGetQueryiv target pname params

The length of params should be COMPSIZE(pname).

Manual page: https://www.opengl.org/sdk/docs/man/html/glGetQueryiv.xhtml

glMapBuffer :: MonadIO m => GLenum -> GLenum -> m (Ptr ()) Source #

Usage: glMapBuffer target access

The parameter target is a BufferTargetARB.

The parameter access is a BufferAccessARB.

Manual page: https://www.opengl.org/sdk/docs/man/html/glMapBuffer.xhtml

glUnmapBuffer :: MonadIO m => GLenum -> m GLboolean Source #

Usage: glUnmapBuffer target

The parameter target is a BufferTargetARB.

Manual page: https://www.opengl.org/sdk/docs/man/html/glUnmapBuffer.xhtml

pattern GL_ARRAY_BUFFER :: forall a. (Num a, Eq a) => a Source #

pattern GL_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_BUFFER_ACCESS :: forall a. (Num a, Eq a) => a Source #

pattern GL_BUFFER_MAPPED :: forall a. (Num a, Eq a) => a Source #

pattern GL_BUFFER_MAP_POINTER :: forall a. (Num a, Eq a) => a Source #

pattern GL_BUFFER_SIZE :: forall a. (Num a, Eq a) => a Source #

pattern GL_BUFFER_USAGE :: forall a. (Num a, Eq a) => a Source #

pattern GL_COLOR_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_CURRENT_FOG_COORD :: forall a. (Num a, Eq a) => a Source #

pattern GL_CURRENT_QUERY :: forall a. (Num a, Eq a) => a Source #

pattern GL_DYNAMIC_COPY :: forall a. (Num a, Eq a) => a Source #

pattern GL_DYNAMIC_DRAW :: forall a. (Num a, Eq a) => a Source #

pattern GL_DYNAMIC_READ :: forall a. (Num a, Eq a) => a Source #

pattern GL_EDGE_FLAG_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_ELEMENT_ARRAY_BUFFER :: forall a. (Num a, Eq a) => a Source #

pattern GL_ELEMENT_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_FOG_COORD :: forall a. (Num a, Eq a) => a Source #

pattern GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_FOG_COORD_ARRAY :: forall a. (Num a, Eq a) => a Source #

pattern GL_FOG_COORD_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_FOG_COORD_ARRAY_POINTER :: forall a. (Num a, Eq a) => a Source #

pattern GL_FOG_COORD_ARRAY_STRIDE :: forall a. (Num a, Eq a) => a Source #

pattern GL_FOG_COORD_ARRAY_TYPE :: forall a. (Num a, Eq a) => a Source #

pattern GL_FOG_COORD_SRC :: forall a. (Num a, Eq a) => a Source #

pattern GL_INDEX_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_NORMAL_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_QUERY_COUNTER_BITS :: forall a. (Num a, Eq a) => a Source #

pattern GL_QUERY_RESULT :: forall a. (Num a, Eq a) => a Source #

pattern GL_QUERY_RESULT_AVAILABLE :: forall a. (Num a, Eq a) => a Source #

pattern GL_READ_ONLY :: forall a. (Num a, Eq a) => a Source #

pattern GL_READ_WRITE :: forall a. (Num a, Eq a) => a Source #

pattern GL_SAMPLES_PASSED :: forall a. (Num a, Eq a) => a Source #

pattern GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_SRC0_ALPHA :: forall a. (Num a, Eq a) => a Source #

pattern GL_SRC0_RGB :: forall a. (Num a, Eq a) => a Source #

pattern GL_SRC1_ALPHA :: forall a. (Num a, Eq a) => a Source #

pattern GL_SRC1_RGB :: forall a. (Num a, Eq a) => a Source #

pattern GL_SRC2_ALPHA :: forall a. (Num a, Eq a) => a Source #

pattern GL_SRC2_RGB :: forall a. (Num a, Eq a) => a Source #

pattern GL_STATIC_COPY :: forall a. (Num a, Eq a) => a Source #

pattern GL_STATIC_DRAW :: forall a. (Num a, Eq a) => a Source #

pattern GL_STATIC_READ :: forall a. (Num a, Eq a) => a Source #

pattern GL_STREAM_COPY :: forall a. (Num a, Eq a) => a Source #

pattern GL_STREAM_DRAW :: forall a. (Num a, Eq a) => a Source #

pattern GL_STREAM_READ :: forall a. (Num a, Eq a) => a Source #

pattern GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_VERTEX_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_WEIGHT_ARRAY_BUFFER_BINDING :: forall a. (Num a, Eq a) => a Source #

pattern GL_WRITE_ONLY :: forall a. (Num a, Eq a) => a Source #