OpenGLRaw-2.2.0.0: A raw binding for the OpenGL graphics system

Copyright(c) Sven Panne 2015
LicenseBSD3
MaintainerSven Panne <svenpanne@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Graphics.Rendering.OpenGL.Raw.Core43

Contents

Description

 

Synopsis

Types

type GLDEBUGPROC = FunPtr GLDEBUGPROCFunc Source

A pointer to a debug callback.

type GLDEBUGPROCFunc Source

Arguments

 = GLenum

source.

-> GLenum

type.

-> GLuint

id.

-> GLenum

severity.

-> GLsizei

length.

-> Ptr GLchar

message.

-> Ptr ()

userParam.

-> IO () 

Debug callback.

type GLbitfield = CUInt Source

32bit bit field.

type GLboolean = CUChar Source

8bit boolean.

type GLbyte = CSChar Source

8bit signed two's complement binary integer.

type GLchar = CChar Source

8bit characters making up strings.

type GLclampd = CDouble Source

64bit floating-point value clamped to [0, 1].

type GLclampf = CFloat Source

32bit floating-point value clamped to [0, 1].

type GLdouble = CDouble Source

64bit floating-point value.

type GLenum = CUInt Source

32bit enumerated binary integer value.

type GLfloat = CFloat Source

32bit floating-point value.

type GLhalf = CUShort Source

16bit half-precision floating-point value encoded in an unsigned scalar.

type GLint = CInt Source

32bit signed two's complement binary integer.

type GLint64 = Int64 Source

64bit signed two's complement binary integer.

type GLintptr = CPtrdiff Source

Pointer-sized signed two's complement binary integer.

type GLshort = CShort Source

16bit signed two's complement binary integer.

type GLsizei = CInt Source

32bit non-negative binary integer size.

type GLsizeiptr = CPtrdiff Source

Pointer-sized non-negative binary integer size.

type GLsync = Ptr () Source

Pointer-sized sync object handle.

type GLubyte = CUChar Source

8bit unsigned binary integer.

type GLuint = CUInt Source

32bit unsigned binary integer.

type GLuint64 = Word64 Source

64bit unsigned binary integer.

type GLushort = CUShort Source

16bit unsigned binary integer.

type GLvoid = () Source

Not an actual GL type, though used in headers in the past.

makeGLDEBUGPROC :: GLDEBUGPROCFunc -> IO (FunPtr GLDEBUGPROCFunc) Source

The storage associated with the resulting FunPtr has to be released with freeHaskellFunPtr when it is no longer required.

Enums

Functions

glActiveShaderProgram Source

Arguments

:: GLuint

pipeline.

-> GLuint

program.

-> IO () 

Manual page for OpenGL 4.x

glActiveTexture Source

Arguments

:: GLenum

texture of type TextureUnit.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glAttachShader Source

Arguments

:: GLuint

program.

-> GLuint

shader.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glBeginConditionalRender Source

Arguments

:: GLuint

id.

-> GLenum

mode of type TypeEnum.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glBeginQuery Source

Arguments

:: GLenum

target.

-> GLuint

id.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glBeginQueryIndexed Source

Arguments

:: GLenum

target.

-> GLuint

index.

-> GLuint

id.

-> IO () 

Manual page for OpenGL 4.x

glBeginTransformFeedback Source

Arguments

:: GLenum

primitiveMode.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glBindAttribLocation Source

Arguments

:: GLuint

program.

-> GLuint

index.

-> Ptr GLchar

name.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glBindBuffer Source

Arguments

:: GLenum

target of type BufferTargetARB.

-> GLuint

buffer.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glBindBufferBase Source

Arguments

:: GLenum

target.

-> GLuint

index.

-> GLuint

buffer.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glBindBufferRange Source

Arguments

:: GLenum

target.

-> GLuint

index.

-> GLuint

buffer.

-> GLintptr

offset of type BufferOffset.

-> GLsizeiptr

size of type BufferSize.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glBindFragDataLocation Source

Arguments

:: GLuint

program.

-> GLuint

color.

-> Ptr GLchar

name pointing to COMPSIZE(name) elements of type GLchar.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glBindFragDataLocationIndexed Source

Arguments

:: GLuint

program.

-> GLuint

colorNumber.

-> GLuint

index.

-> Ptr GLchar

name.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glBindFramebuffer Source

Arguments

:: GLenum

target of type FramebufferTarget.

-> GLuint

framebuffer.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glBindImageTexture Source

Arguments

:: GLuint

unit.

-> GLuint

texture.

-> GLint

level.

-> GLboolean

layered of type Boolean.

-> GLint

layer.

-> GLenum

access.

-> GLenum

format.

-> IO () 

Manual page for OpenGL 4.x

glBindProgramPipeline Source

Arguments

:: GLuint

pipeline.

-> IO () 

Manual page for OpenGL 4.x

glBindRenderbuffer Source

Arguments

:: GLenum

target of type RenderbufferTarget.

-> GLuint

renderbuffer.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glBindSampler Source

Arguments

:: GLuint

unit.

-> GLuint

sampler.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glBindTexture Source

Arguments

:: GLenum

target of type TextureTarget.

-> GLuint

texture of type Texture.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glBindTransformFeedback Source

Arguments

:: GLenum

target.

-> GLuint

id.

-> IO () 

Manual page for OpenGL 4.x

glBindVertexArray Source

Arguments

:: GLuint

array.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glBindVertexBuffer Source

Arguments

:: GLuint

bindingindex.

-> GLuint

buffer.

-> GLintptr

offset of type BufferOffset.

-> GLsizei

stride.

-> IO () 

Manual page for OpenGL 4.x

glBlendColor Source

Arguments

:: GLfloat

red of type ColorF.

-> GLfloat

green of type ColorF.

-> GLfloat

blue of type ColorF.

-> GLfloat

alpha of type ColorF.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glBlendEquation Source

Arguments

:: GLenum

mode of type BlendEquationMode.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glBlendEquationSeparate Source

Arguments

:: GLenum

modeRGB of type BlendEquationModeEXT.

-> GLenum

modeAlpha of type BlendEquationModeEXT.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glBlendEquationSeparatei Source

Arguments

:: GLuint

buf.

-> GLenum

modeRGB.

-> GLenum

modeAlpha.

-> IO () 

Manual page for OpenGL 4.x

glBlendEquationi Source

Arguments

:: GLuint

buf.

-> GLenum

mode.

-> IO () 

Manual page for OpenGL 4.x

glBlendFunc Source

Arguments

:: GLenum

sfactor of type BlendingFactorSrc.

-> GLenum

dfactor of type BlendingFactorDest.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glBlendFuncSeparate Source

Arguments

:: GLenum

sfactorRGB of type BlendFuncSeparateParameterEXT.

-> GLenum

dfactorRGB of type BlendFuncSeparateParameterEXT.

-> GLenum

sfactorAlpha of type BlendFuncSeparateParameterEXT.

-> GLenum

dfactorAlpha of type BlendFuncSeparateParameterEXT.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glBlendFuncSeparatei Source

Arguments

:: GLuint

buf.

-> GLenum

srcRGB.

-> GLenum

dstRGB.

-> GLenum

srcAlpha.

-> GLenum

dstAlpha.

-> IO () 

Manual page for OpenGL 4.x

glBlendFunci Source

Arguments

:: GLuint

buf.

-> GLenum

src.

-> GLenum

dst.

-> IO () 

Manual page for OpenGL 4.x

glBlitFramebuffer Source

Arguments

:: GLint

srcX0.

-> GLint

srcY0.

-> GLint

srcX1.

-> GLint

srcY1.

-> GLint

dstX0.

-> GLint

dstY0.

-> GLint

dstX1.

-> GLint

dstY1.

-> GLbitfield

mask of type ClearBufferMask.

-> GLenum

filter.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glBufferData Source

Arguments

:: GLenum

target of type BufferTargetARB.

-> GLsizeiptr

size of type BufferSize.

-> Ptr a

data pointing to size elements of type a.

-> GLenum

usage of type BufferUsageARB.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glBufferSubData Source

Arguments

:: GLenum

target of type BufferTargetARB.

-> GLintptr

offset of type BufferOffset.

-> GLsizeiptr

size of type BufferSize.

-> Ptr a

data pointing to size elements of type a.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCheckFramebufferStatus Source

Arguments

:: GLenum

target of type FramebufferTarget.

-> IO GLenum 

Manual pages for OpenGL 3.x or OpenGL 4.x

glClampColor Source

Arguments

:: GLenum

target of type ClampColorTargetARB.

-> GLenum

clamp of type ClampColorModeARB.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glClear Source

Arguments

:: GLbitfield

mask of type ClearBufferMask.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glClearBufferData Source

Arguments

:: GLenum

target.

-> GLenum

internalformat.

-> GLenum

format.

-> GLenum

type.

-> Ptr a

data pointing to COMPSIZE(format,type) elements of type a.

-> IO () 

Manual page for OpenGL 4.x

glClearBufferSubData Source

Arguments

:: GLenum

target.

-> GLenum

internalformat.

-> GLintptr

offset of type BufferOffset.

-> GLsizeiptr

size of type BufferSize.

-> GLenum

format.

-> GLenum

type.

-> Ptr a

data pointing to COMPSIZE(format,type) elements of type a.

-> IO () 

Manual page for OpenGL 4.x

glClearBufferfi Source

Arguments

:: GLenum

buffer.

-> GLint

drawbuffer of type DrawBufferName.

-> GLfloat

depth.

-> GLint

stencil.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glClearBufferfv Source

Arguments

:: GLenum

buffer.

-> GLint

drawbuffer of type DrawBufferName.

-> Ptr GLfloat

value pointing to COMPSIZE(buffer) elements of type GLfloat.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glClearBufferiv Source

Arguments

:: GLenum

buffer.

-> GLint

drawbuffer of type DrawBufferName.

-> Ptr GLint

value pointing to COMPSIZE(buffer) elements of type GLint.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glClearBufferuiv Source

Arguments

:: GLenum

buffer.

-> GLint

drawbuffer of type DrawBufferName.

-> Ptr GLuint

value pointing to COMPSIZE(buffer) elements of type GLuint.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glClearColor Source

Arguments

:: GLfloat

red of type ColorF.

-> GLfloat

green of type ColorF.

-> GLfloat

blue of type ColorF.

-> GLfloat

alpha of type ColorF.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glClearDepth Source

Arguments

:: GLdouble

depth.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glClearDepthf Source

Arguments

:: GLfloat

d.

-> IO () 

Manual page for OpenGL 4.x

glClearStencil Source

Arguments

:: GLint

s of type StencilValue.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glClientWaitSync Source

Arguments

:: GLsync

sync of type sync.

-> GLbitfield

flags.

-> GLuint64

timeout.

-> IO GLenum 

Manual pages for OpenGL 3.x or OpenGL 4.x

glColorMask Source

Arguments

:: GLboolean

red of type Boolean.

-> GLboolean

green of type Boolean.

-> GLboolean

blue of type Boolean.

-> GLboolean

alpha of type Boolean.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glColorMaski Source

Arguments

:: GLuint

index.

-> GLboolean

r of type Boolean.

-> GLboolean

g of type Boolean.

-> GLboolean

b of type Boolean.

-> GLboolean

a of type Boolean.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glCompileShader Source

Arguments

:: GLuint

shader.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCompressedTexImage1D Source

Arguments

:: GLenum

target of type TextureTarget.

-> GLint

level of type CheckedInt32.

-> GLenum

internalformat of type PixelInternalFormat.

-> GLsizei

width.

-> GLint

border of type CheckedInt32.

-> GLsizei

imageSize.

-> Ptr a

data pointing to imageSize elements of type CompressedTextureARB.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCompressedTexImage2D Source

Arguments

:: GLenum

target of type TextureTarget.

-> GLint

level of type CheckedInt32.

-> GLenum

internalformat of type PixelInternalFormat.

-> GLsizei

width.

-> GLsizei

height.

-> GLint

border of type CheckedInt32.

-> GLsizei

imageSize.

-> Ptr a

data pointing to imageSize elements of type CompressedTextureARB.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCompressedTexImage3D Source

Arguments

:: GLenum

target of type TextureTarget.

-> GLint

level of type CheckedInt32.

-> GLenum

internalformat of type PixelInternalFormat.

-> GLsizei

width.

-> GLsizei

height.

-> GLsizei

depth.

-> GLint

border of type CheckedInt32.

-> GLsizei

imageSize.

-> Ptr a

data pointing to imageSize elements of type CompressedTextureARB.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCompressedTexSubImage1D Source

Arguments

:: GLenum

target of type TextureTarget.

-> GLint

level of type CheckedInt32.

-> GLint

xoffset of type CheckedInt32.

-> GLsizei

width.

-> GLenum

format of type PixelFormat.

-> GLsizei

imageSize.

-> Ptr a

data pointing to imageSize elements of type CompressedTextureARB.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCompressedTexSubImage2D Source

Arguments

:: GLenum

target of type TextureTarget.

-> GLint

level of type CheckedInt32.

-> GLint

xoffset of type CheckedInt32.

-> GLint

yoffset of type CheckedInt32.

-> GLsizei

width.

-> GLsizei

height.

-> GLenum

format of type PixelFormat.

-> GLsizei

imageSize.

-> Ptr a

data pointing to imageSize elements of type CompressedTextureARB.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCompressedTexSubImage3D Source

Arguments

:: GLenum

target of type TextureTarget.

-> GLint

level of type CheckedInt32.

-> GLint

xoffset of type CheckedInt32.

-> GLint

yoffset of type CheckedInt32.

-> GLint

zoffset of type CheckedInt32.

-> GLsizei

width.

-> GLsizei

height.

-> GLsizei

depth.

-> GLenum

format of type PixelFormat.

-> GLsizei

imageSize.

-> Ptr a

data pointing to imageSize elements of type CompressedTextureARB.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCopyBufferSubData Source

Arguments

:: GLenum

readTarget.

-> GLenum

writeTarget.

-> GLintptr

readOffset of type BufferOffset.

-> GLintptr

writeOffset of type BufferOffset.

-> GLsizeiptr

size of type BufferSize.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glCopyImageSubData Source

Arguments

:: GLuint

srcName.

-> GLenum

srcTarget.

-> GLint

srcLevel.

-> GLint

srcX.

-> GLint

srcY.

-> GLint

srcZ.

-> GLuint

dstName.

-> GLenum

dstTarget.

-> GLint

dstLevel.

-> GLint

dstX.

-> GLint

dstY.

-> GLint

dstZ.

-> GLsizei

srcWidth.

-> GLsizei

srcHeight.

-> GLsizei

srcDepth.

-> IO () 

Manual page for OpenGL 4.x

glCopyTexImage1D Source

Arguments

:: GLenum

target of type TextureTarget.

-> GLint

level of type CheckedInt32.

-> GLenum

internalformat of type PixelInternalFormat.

-> GLint

x of type WinCoord.

-> GLint

y of type WinCoord.

-> GLsizei

width.

-> GLint

border of type CheckedInt32.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCopyTexImage2D Source

Arguments

:: GLenum

target of type TextureTarget.

-> GLint

level of type CheckedInt32.

-> GLenum

internalformat of type PixelInternalFormat.

-> GLint

x of type WinCoord.

-> GLint

y of type WinCoord.

-> GLsizei

width.

-> GLsizei

height.

-> GLint

border of type CheckedInt32.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCopyTexSubImage1D Source

Arguments

:: GLenum

target of type TextureTarget.

-> GLint

level of type CheckedInt32.

-> GLint

xoffset of type CheckedInt32.

-> GLint

x of type WinCoord.

-> GLint

y of type WinCoord.

-> GLsizei

width.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCopyTexSubImage2D Source

Arguments

:: GLenum

target of type TextureTarget.

-> GLint

level of type CheckedInt32.

-> GLint

xoffset of type CheckedInt32.

-> GLint

yoffset of type CheckedInt32.

-> GLint

x of type WinCoord.

-> GLint

y of type WinCoord.

-> GLsizei

width.

-> GLsizei

height.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCopyTexSubImage3D Source

Arguments

:: GLenum

target of type TextureTarget.

-> GLint

level of type CheckedInt32.

-> GLint

xoffset of type CheckedInt32.

-> GLint

yoffset of type CheckedInt32.

-> GLint

zoffset of type CheckedInt32.

-> GLint

x of type WinCoord.

-> GLint

y of type WinCoord.

-> GLsizei

width.

-> GLsizei

height.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCreateShader Source

Arguments

:: GLenum

type.

-> IO GLuint 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glCreateShaderProgramv Source

Arguments

:: GLenum

type.

-> GLsizei

count.

-> Ptr (Ptr GLchar)

strings pointing to count elements of type Ptr GLchar.

-> IO GLuint 

Manual page for OpenGL 4.x

glCullFace Source

Arguments

:: GLenum

mode of type CullFaceMode.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDebugMessageCallback Source

Arguments

:: GLDEBUGPROC

callback.

-> Ptr a

userParam.

-> IO () 

Manual page for OpenGL 4.x

glDebugMessageControl Source

Arguments

:: GLenum

source.

-> GLenum

type.

-> GLenum

severity.

-> GLsizei

count.

-> Ptr GLuint

ids pointing to count elements of type GLuint.

-> GLboolean

enabled of type Boolean.

-> IO () 

Manual page for OpenGL 4.x

glDebugMessageInsert Source

Arguments

:: GLenum

source.

-> GLenum

type.

-> GLuint

id.

-> GLenum

severity.

-> GLsizei

length.

-> Ptr GLchar

buf pointing to COMPSIZE(buf,length) elements of type GLchar.

-> IO () 

Manual page for OpenGL 4.x

glDeleteBuffers Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

buffers pointing to n elements of type GLuint.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDeleteFramebuffers Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

framebuffers pointing to n elements of type GLuint.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glDeleteProgram Source

Arguments

:: GLuint

program.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDeleteProgramPipelines Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

pipelines pointing to n elements of type GLuint.

-> IO () 

Manual page for OpenGL 4.x

glDeleteQueries Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

ids pointing to n elements of type GLuint.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDeleteRenderbuffers Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

renderbuffers pointing to n elements of type GLuint.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glDeleteSamplers Source

Arguments

:: GLsizei

count.

-> Ptr GLuint

samplers pointing to count elements of type GLuint.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glDeleteShader Source

Arguments

:: GLuint

shader.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDeleteSync Source

Arguments

:: GLsync

sync of type sync.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glDeleteTextures Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

textures pointing to n elements of type Texture.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDeleteTransformFeedbacks Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

ids pointing to n elements of type GLuint.

-> IO () 

Manual page for OpenGL 4.x

glDeleteVertexArrays Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

arrays pointing to n elements of type GLuint.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glDepthFunc Source

Arguments

:: GLenum

func of type DepthFunction.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDepthMask Source

Arguments

:: GLboolean

flag of type Boolean.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDepthRange Source

Arguments

:: GLdouble

near.

-> GLdouble

far.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDepthRangeArrayv Source

Arguments

:: GLuint

first.

-> GLsizei

count.

-> Ptr GLdouble

v pointing to COMPSIZE(count) elements of type GLdouble.

-> IO () 

Manual page for OpenGL 4.x

glDepthRangeIndexed Source

Arguments

:: GLuint

index.

-> GLdouble

n.

-> GLdouble

f.

-> IO () 

Manual page for OpenGL 4.x

glDepthRangef Source

Arguments

:: GLfloat

n.

-> GLfloat

f.

-> IO () 

Manual page for OpenGL 4.x

glDetachShader Source

Arguments

:: GLuint

program.

-> GLuint

shader.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDisable Source

Arguments

:: GLenum

cap of type EnableCap.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDisableVertexAttribArray Source

Arguments

:: GLuint

index.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDisablei Source

Arguments

:: GLenum

target.

-> GLuint

index.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glDispatchCompute Source

Arguments

:: GLuint

num_groups_x.

-> GLuint

num_groups_y.

-> GLuint

num_groups_z.

-> IO () 

Manual page for OpenGL 4.x

glDispatchComputeIndirect Source

Arguments

:: GLintptr

indirect of type BufferOffset.

-> IO () 

Manual page for OpenGL 4.x

glDrawArrays Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLint

first.

-> GLsizei

count.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDrawArraysIndirect Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> Ptr a

indirect.

-> IO () 

Manual page for OpenGL 4.x

glDrawArraysInstanced Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLint

first.

-> GLsizei

count.

-> GLsizei

instancecount.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glDrawArraysInstancedBaseInstance Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLint

first.

-> GLsizei

count.

-> GLsizei

instancecount.

-> GLuint

baseinstance.

-> IO () 

Manual page for OpenGL 4.x

glDrawBuffer Source

Arguments

:: GLenum

buf of type DrawBufferMode.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDrawBuffers Source

Arguments

:: GLsizei

n.

-> Ptr GLenum

bufs pointing to n elements of type DrawBufferModeATI.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDrawElements Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLsizei

count.

-> GLenum

type of type DrawElementsType.

-> Ptr a

indices pointing to COMPSIZE(count,type) elements of type a.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDrawElementsBaseVertex Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLsizei

count.

-> GLenum

type of type DrawElementsType.

-> Ptr a

indices pointing to COMPSIZE(count,type) elements of type a.

-> GLint

basevertex.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glDrawElementsIndirect Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLenum

type.

-> Ptr a

indirect.

-> IO () 

Manual page for OpenGL 4.x

glDrawElementsInstanced Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLsizei

count.

-> GLenum

type of type DrawElementsType.

-> Ptr a

indices pointing to COMPSIZE(count,type) elements of type a.

-> GLsizei

instancecount.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glDrawElementsInstancedBaseInstance Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLsizei

count.

-> GLenum

type.

-> Ptr a

indices pointing to count elements of type a.

-> GLsizei

instancecount.

-> GLuint

baseinstance.

-> IO () 

Manual page for OpenGL 4.x

glDrawElementsInstancedBaseVertex Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLsizei

count.

-> GLenum

type of type DrawElementsType.

-> Ptr a

indices pointing to COMPSIZE(count,type) elements of type a.

-> GLsizei

instancecount.

-> GLint

basevertex.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glDrawElementsInstancedBaseVertexBaseInstance Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLsizei

count.

-> GLenum

type.

-> Ptr a

indices pointing to count elements of type a.

-> GLsizei

instancecount.

-> GLint

basevertex.

-> GLuint

baseinstance.

-> IO () 

Manual page for OpenGL 4.x

glDrawRangeElements Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLuint

start.

-> GLuint

end.

-> GLsizei

count.

-> GLenum

type of type DrawElementsType.

-> Ptr a

indices pointing to COMPSIZE(count,type) elements of type a.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glDrawRangeElementsBaseVertex Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLuint

start.

-> GLuint

end.

-> GLsizei

count.

-> GLenum

type of type DrawElementsType.

-> Ptr a

indices pointing to COMPSIZE(count,type) elements of type a.

-> GLint

basevertex.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glDrawTransformFeedback Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLuint

id.

-> IO () 

Manual page for OpenGL 4.x

glDrawTransformFeedbackInstanced Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLuint

id.

-> GLsizei

instancecount.

-> IO () 

Manual page for OpenGL 4.x

glDrawTransformFeedbackStream Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLuint

id.

-> GLuint

stream.

-> IO () 

Manual page for OpenGL 4.x

glDrawTransformFeedbackStreamInstanced Source

Arguments

:: GLenum

mode of type PrimitiveType.

-> GLuint

id.

-> GLuint

stream.

-> GLsizei

instancecount.

-> IO () 

Manual page for OpenGL 4.x

glEnable Source

Arguments

:: GLenum

cap of type EnableCap.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glEnableVertexAttribArray Source

Arguments

:: GLuint

index.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glEnablei Source

Arguments

:: GLenum

target.

-> GLuint

index.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glEndQuery Source

Arguments

:: GLenum

target.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glEndQueryIndexed Source

Arguments

:: GLenum

target.

-> GLuint

index.

-> IO () 

Manual page for OpenGL 4.x

glFenceSync Source

Arguments

:: GLenum

condition.

-> GLbitfield

flags.

-> IO GLsync

of type sync.

Manual pages for OpenGL 3.x or OpenGL 4.x

glFinish :: IO () Source

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glFlush :: IO () Source

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glFlushMappedBufferRange Source

Arguments

:: GLenum

target of type BufferTargetARB.

-> GLintptr

offset of type BufferOffset.

-> GLsizeiptr

length of type BufferSize.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glFramebufferParameteri Source

Arguments

:: GLenum

target.

-> GLenum

pname.

-> GLint

param.

-> IO () 

Manual page for OpenGL 4.x

glFramebufferRenderbuffer Source

Arguments

:: GLenum

target of type FramebufferTarget.

-> GLenum

attachment of type FramebufferAttachment.

-> GLenum

renderbuffertarget of type RenderbufferTarget.

-> GLuint

renderbuffer.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glFramebufferTexture Source

Arguments

:: GLenum

target.

-> GLenum

attachment.

-> GLuint

texture.

-> GLint

level.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glFramebufferTexture1D Source

Arguments

:: GLenum

target of type FramebufferTarget.

-> GLenum

attachment of type FramebufferAttachment.

-> GLenum

textarget.

-> GLuint

texture.

-> GLint

level.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glFramebufferTexture2D Source

Arguments

:: GLenum

target of type FramebufferTarget.

-> GLenum

attachment of type FramebufferAttachment.

-> GLenum

textarget.

-> GLuint

texture.

-> GLint

level.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glFramebufferTexture3D Source

Arguments

:: GLenum

target of type FramebufferTarget.

-> GLenum

attachment of type FramebufferAttachment.

-> GLenum

textarget.

-> GLuint

texture.

-> GLint

level.

-> GLint

zoffset.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glFramebufferTextureLayer Source

Arguments

:: GLenum

target of type FramebufferTarget.

-> GLenum

attachment of type FramebufferAttachment.

-> GLuint

texture of type Texture.

-> GLint

level of type CheckedInt32.

-> GLint

layer of type CheckedInt32.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glFrontFace Source

Arguments

:: GLenum

mode of type FrontFaceDirection.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glGenBuffers Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

buffers pointing to n elements of type GLuint.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glGenFramebuffers Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

framebuffers pointing to n elements of type GLuint.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glGenProgramPipelines Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

pipelines pointing to n elements of type GLuint.

-> IO () 

Manual page for OpenGL 4.x

glGenQueries Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

ids pointing to n elements of type GLuint.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glGenRenderbuffers Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

renderbuffers pointing to n elements of type GLuint.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glGenSamplers Source

Arguments

:: GLsizei

count.

-> Ptr GLuint

samplers pointing to count elements of type GLuint.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glGenTextures Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

textures pointing to n elements of type Texture.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glGenTransformFeedbacks Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

ids pointing to n elements of type GLuint.

-> IO () 

Manual page for OpenGL 4.x

glGenVertexArrays Source

Arguments

:: GLsizei

n.

-> Ptr GLuint

arrays pointing to n elements of type GLuint.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glGenerateMipmap Source

Arguments

:: GLenum

target.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glGetActiveAtomicCounterBufferiv Source

Arguments

:: GLuint

program.

-> GLuint

bufferIndex.

-> GLenum

pname.

-> Ptr GLint

params pointing to COMPSIZE(pname) elements of type GLint.

-> IO () 

Manual page for OpenGL 4.x

glGetActiveAttrib Source

Arguments

:: GLuint

program.

-> GLuint

index.

-> GLsizei

bufSize.

-> Ptr GLsizei

length pointing to 1 elements of type GLsizei.

-> Ptr GLint

size pointing to 1 elements of type GLint.

-> Ptr GLenum

type pointing to 1 elements of type GLenum.

-> Ptr GLchar

name pointing to bufSize elements of type GLchar.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glGetActiveSubroutineName Source

Arguments

:: GLuint

program.

-> GLenum

shadertype.

-> GLuint

index.

-> GLsizei

bufsize.

-> Ptr GLsizei

length pointing to 1 elements of type GLsizei.

-> Ptr GLchar

name pointing to bufsize elements of type GLchar.

-> IO () 

Manual page for OpenGL 4.x

glGetActiveSubroutineUniformName Source

Arguments

:: GLuint

program.

-> GLenum

shadertype.

-> GLuint

index.

-> GLsizei

bufsize.

-> Ptr GLsizei

length pointing to 1 elements of type GLsizei.

-> Ptr GLchar

name pointing to bufsize elements of type GLchar.

-> IO () 

Manual page for OpenGL 4.x

glGetActiveSubroutineUniformiv Source

Arguments

:: GLuint

program.

-> GLenum

shadertype.

-> GLuint

index.

-> GLenum

pname.

-> Ptr GLint

values pointing to COMPSIZE(pname) elements of type GLint.

-> IO () 

Manual page for OpenGL 4.x

glGetActiveUniform Source

Arguments

:: GLuint

program.

-> GLuint

index.

-> GLsizei

bufSize.

-> Ptr GLsizei

length pointing to 1 elements of type GLsizei.

-> Ptr GLint

size pointing to 1 elements of type GLint.

-> Ptr GLenum

type pointing to 1 elements of type GLenum.

-> Ptr GLchar

name pointing to bufSize elements of type GLchar.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glGetActiveUniformBlockName Source

Arguments

:: GLuint

program.

-> GLuint

uniformBlockIndex.

-> GLsizei

bufSize.

-> Ptr GLsizei

length pointing to 1 elements of type GLsizei.

-> Ptr GLchar

uniformBlockName pointing to bufSize elements of type GLchar.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glGetActiveUniformBlockiv Source

Arguments

:: GLuint

program.

-> GLuint

uniformBlockIndex.

-> GLenum

pname.

-> Ptr GLint

params pointing to COMPSIZE(program,uniformBlockIndex,pname) elements of type GLint.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glGetActiveUniformName Source

Arguments

:: GLuint

program.

-> GLuint

uniformIndex.

-> GLsizei

bufSize.

-> Ptr GLsizei

length pointing to 1 elements of type GLsizei.

-> Ptr GLchar

uniformName pointing to bufSize elements of type GLchar.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glGetActiveUniformsiv Source

Arguments

:: GLuint

program.

-> GLsizei

uniformCount.

-> Ptr GLuint

uniformIndices pointing to uniformCount elements of type GLuint.

-> GLenum

pname.

-> Ptr GLint

params pointing to COMPSIZE(uniformCount,pname) elements of type GLint.

-> IO () 

Manual pages for OpenGL 3.x or OpenGL 4.x

glGetAttachedShaders Source

Arguments

:: GLuint

program.

-> GLsizei

maxCount.

-> Ptr GLsizei

count pointing to 1 elements of type GLsizei.

-> Ptr GLuint

shaders pointing to maxCount elements of type GLuint.

-> IO () 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glGetAttribLocation Source

Arguments

:: GLuint

program.

-> Ptr GLchar

name.

-> IO GLint 

Manual pages for OpenGL 2.x or OpenGL 3.x or OpenGL 4.x

glGetBooleani_v Source

Arguments

:: GLenum

target.

-> GLuint

index.

-> Ptr GLboolean

data pointing to COMPSIZE(target) elements of type Boolean.

-> IO () 

Manual pages for OpenGL 3.x or