OpenGLRaw-2.5.1.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.Core45

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

:: MonadIO m 
=> GLuint

pipeline.

-> GLuint

program.

-> m () 

Manual page for OpenGL 4.x

glActiveTexture Source

Arguments

:: MonadIO m 
=> GLenum

texture of type TextureUnit.

-> m () 

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

glAttachShader Source

Arguments

:: MonadIO m 
=> GLuint

program.

-> GLuint

shader.

-> m () 

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

glBeginConditionalRender Source

Arguments

:: MonadIO m 
=> GLuint

id.

-> GLenum

mode of type TypeEnum.

-> m () 

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

glBeginQuery Source

Arguments

:: MonadIO m 
=> GLenum

target.

-> GLuint

id.

-> m () 

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

glBeginQueryIndexed Source

Arguments

:: MonadIO m 
=> GLenum

target.

-> GLuint

index.

-> GLuint

id.

-> m () 

Manual page for OpenGL 4.x

glBeginTransformFeedback Source

Arguments

:: MonadIO m 
=> GLenum

primitiveMode.

-> m () 

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

glBindAttribLocation Source

Arguments

:: MonadIO m 
=> GLuint

program.

-> GLuint

index.

-> Ptr GLchar

name.

-> m () 

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

glBindBuffer Source

Arguments

:: MonadIO m 
=> GLenum

target of type BufferTargetARB.

-> GLuint

buffer.

-> m () 

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

glBindBufferBase Source

Arguments

:: MonadIO m 
=> GLenum

target.

-> GLuint

index.

-> GLuint

buffer.

-> m () 

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

glBindBufferRange Source

Arguments

:: MonadIO m 
=> GLenum

target.

-> GLuint

index.

-> GLuint

buffer.

-> GLintptr

offset of type BufferOffset.

-> GLsizeiptr

size of type BufferSize.

-> m () 

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

glBindBuffersBase Source

Arguments

:: MonadIO m 
=> GLenum

target.

-> GLuint

first.

-> GLsizei

count.

-> Ptr GLuint

buffers pointing to count elements of type GLuint.

-> m () 

Manual page for OpenGL 4.x

glBindBuffersRange Source

Arguments

:: MonadIO m 
=> GLenum

target.

-> GLuint

first.

-> GLsizei

count.

-> Ptr GLuint

buffers pointing to count elements of type GLuint.

-> Ptr GLintptr

offsets pointing to count elements of type GLintptr.

-> Ptr GLsizeiptr

sizes pointing to count elements of type GLsizeiptr.

-> m () 

Manual page for OpenGL 4.x

glBindFragDataLocation Source

Arguments

:: MonadIO m 
=> GLuint

program.

-> GLuint

color.

-> Ptr GLchar

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

-> m () 

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

glBindFragDataLocationIndexed Source

Arguments

:: MonadIO m 
=> GLuint

program.

-> GLuint

colorNumber.

-> GLuint

index.

-> Ptr GLchar

name.

-> m () 

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

glBindFramebuffer Source

Arguments

:: MonadIO m 
=> GLenum

target of type FramebufferTarget.

-> GLuint

framebuffer.

-> m () 

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

glBindImageTexture Source

Arguments

:: MonadIO m 
=> GLuint

unit.

-> GLuint

texture.

-> GLint

level.

-> GLboolean

layered of type Boolean.

-> GLint

layer.

-> GLenum

access.

-> GLenum

format.

-> m () 

Manual page for OpenGL 4.x

glBindImageTextures Source

Arguments

:: MonadIO m 
=> GLuint

first.

-> GLsizei

count.

-> Ptr GLuint

textures pointing to count elements of type GLuint.

-> m () 

Manual page for OpenGL 4.x

glBindProgramPipeline Source

Arguments

:: MonadIO m 
=> GLuint

pipeline.

-> m () 

Manual page for OpenGL 4.x

glBindRenderbuffer Source

Arguments

:: MonadIO m 
=> GLenum

target of type RenderbufferTarget.

-> GLuint

renderbuffer.

-> m () 

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

glBindSampler Source

Arguments

:: MonadIO m 
=> GLuint

unit.

-> GLuint

sampler.

-> m () 

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

glBindSamplers Source

Arguments

:: MonadIO m 
=> GLuint

first.

-> GLsizei

count.

-> Ptr GLuint

samplers pointing to count elements of type GLuint.

-> m () 

Manual page for OpenGL 4.x

glBindTexture Source

Arguments

:: MonadIO m 
=> GLenum

target of type TextureTarget.

-> GLuint

texture of type Texture.

-> m () 

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

glBindTextureUnit Source

Arguments

:: MonadIO m 
=> GLuint

unit.

-> GLuint

texture.

-> m () 

Manual page for OpenGL 4.x

glBindTextures Source

Arguments

:: MonadIO m 
=> GLuint

first.

-> GLsizei

count.

-> Ptr GLuint

textures pointing to count elements of type GLuint.

-> m () 

Manual page for OpenGL 4.x

glBindTransformFeedback Source

Arguments

:: MonadIO m 
=> GLenum

target.

-> GLuint

id.

-> m () 

Manual page for OpenGL 4.x

glBindVertexArray Source

Arguments

:: MonadIO m 
=> GLuint

array.

-> m () 

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

glBindVertexBuffer Source

Arguments

:: MonadIO m 
=> GLuint

bindingindex.

-> GLuint

buffer.

-> GLintptr

offset of type BufferOffset.

-> GLsizei

stride.

-> m () 

Manual page for OpenGL 4.x

glBindVertexBuffers Source

Arguments

:: MonadIO m 
=> GLuint

first.

-> GLsizei

count.

-> Ptr GLuint

buffers pointing to count elements of type GLuint.

-> Ptr GLintptr

offsets pointing to count elements of type GLintptr.

-> Ptr GLsizei

strides pointing to count elements of type GLsizei.

-> m () 

Manual page for OpenGL 4.x

glBlendColor Source

Arguments

:: MonadIO m 
=> GLfloat

red of type ColorF.

-> GLfloat

green of type ColorF.

-> GLfloat

blue of type ColorF.

-> GLfloat

alpha of type ColorF.

-> m () 

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

glBlendEquation Source

Arguments

:: MonadIO m 
=> GLenum

mode of type BlendEquationMode.

-> m () 

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

glBlendEquationSeparate Source

Arguments

:: MonadIO m 
=> GLenum

modeRGB of type BlendEquationModeEXT.

-> GLenum

modeAlpha of type BlendEquationModeEXT.

-> m () 

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

glBlendEquationSeparatei Source

Arguments

:: MonadIO m 
=> GLuint

buf.

-> GLenum

modeRGB.

-> GLenum

modeAlpha.

-> m () 

Manual page for OpenGL 4.x

glBlendEquationi Source

Arguments

:: MonadIO m 
=> GLuint

buf.

-> GLenum

mode.

-> m () 

Manual page for OpenGL 4.x

glBlendFunc Source

Arguments

:: MonadIO m 
=> GLenum

sfactor of type BlendingFactorSrc.

-> GLenum

dfactor of type BlendingFactorDest.

-> m () 

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

glBlendFuncSeparate Source

Arguments

:: MonadIO m 
=> GLenum

sfactorRGB of type BlendFuncSeparateParameterEXT.

-> GLenum

dfactorRGB of type BlendFuncSeparateParameterEXT.

-> GLenum

sfactorAlpha of type BlendFuncSeparateParameterEXT.

-> GLenum

dfactorAlpha of type BlendFuncSeparateParameterEXT.

-> m () 

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

glBlendFuncSeparatei Source

Arguments

:: MonadIO m 
=> GLuint

buf.

-> GLenum

srcRGB.

-> GLenum

dstRGB.

-> GLenum

srcAlpha.

-> GLenum

dstAlpha.

-> m () 

Manual page for OpenGL 4.x

glBlendFunci Source

Arguments

:: MonadIO m 
=> GLuint

buf.

-> GLenum

src.

-> GLenum

dst.

-> m () 

Manual page for OpenGL 4.x

glBlitFramebuffer Source

Arguments

:: MonadIO m 
=> GLint

srcX0.

-> GLint

srcY0.

-> GLint

srcX1.

-> GLint

srcY1.

-> GLint

dstX0.

-> GLint

dstY0.

-> GLint

dstX1.

-> GLint

dstY1.

-> GLbitfield

mask of type ClearBufferMask.

-> GLenum

filter.

-> m () 

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

glBlitNamedFramebuffer Source

Arguments

:: MonadIO m 
=> GLuint

readFramebuffer.

-> GLuint

drawFramebuffer.

-> GLint

srcX0.

-> GLint

srcY0.

-> GLint

srcX1.

-> GLint

srcY1.

-> GLint

dstX0.

-> GLint

dstY0.

-> GLint

dstX1.

-> GLint

dstY1.

-> GLbitfield

mask.

-> GLenum

filter.

-> m () 

Manual page for OpenGL 4.x

glBufferData Source

Arguments

:: MonadIO m 
=> 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.

-> m () 

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

glBufferStorage Source

Arguments

:: MonadIO m 
=> GLenum

target.

-> GLsizeiptr

size.

-> Ptr a

data pointing to size elements of type a.

-> GLbitfield

flags.

-> m () 

Manual page for OpenGL 4.x

glBufferSubData Source

Arguments

:: MonadIO m 
=> 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.

-> m () 

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

glCheckFramebufferStatus Source

Arguments

:: MonadIO m 
=> GLenum

target of type FramebufferTarget.

-> m GLenum 

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

glCheckNamedFramebufferStatus Source

Arguments

:: MonadIO m 
=> GLuint

framebuffer.

-> GLenum

target.

-> m GLenum 

Manual page for OpenGL 4.x

glClampColor Source

Arguments

:: MonadIO m 
=> GLenum

target of type ClampColorTargetARB.

-> GLenum

clamp of type ClampColorModeARB.

-> m () 

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

glClear Source

Arguments

:: MonadIO m 
=> GLbitfield

mask of type ClearBufferMask.

-> m () 

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

glClearBufferData Source

Arguments

:: MonadIO m 
=> GLenum

target.

-> GLenum

internalformat.

-> GLenum

format.

-> GLenum

type.

-> Ptr a

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

-> m () 

Manual page for OpenGL 4.x

glClearBufferSubData Source

Arguments

:: MonadIO m 
=> 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.

-> m () 

Manual page for OpenGL 4.x

glClearBufferfi Source

Arguments

:: MonadIO m 
=> GLenum

buffer.

-> GLint

drawbuffer of type DrawBufferName.

-> GLfloat

depth.

-> GLint

stencil.

-> m () 

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

glClearBufferfv Source

Arguments

:: MonadIO m 
=> GLenum

buffer.

-> GLint

drawbuffer of type DrawBufferName.

-> Ptr GLfloat

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

-> m () 

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

glClearBufferiv Source

Arguments

:: MonadIO m 
=> GLenum

buffer.

-> GLint

drawbuffer of type DrawBufferName.

-> Ptr GLint

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

-> m () 

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

glClearBufferuiv Source

Arguments

:: MonadIO m 
=> GLenum

buffer.

-> GLint

drawbuffer of type DrawBufferName.

-> Ptr GLuint

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

-> m () 

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

glClearColor Source

Arguments

:: MonadIO m 
=> GLfloat

red of type ColorF.

-> GLfloat

green of type ColorF.

-> GLfloat

blue of type ColorF.

-> GLfloat

alpha of type ColorF.

-> m () 

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

glClearDepth Source

Arguments

:: MonadIO m 
=> GLdouble

depth.

-> m () 

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

glClearDepthf Source

Arguments

:: MonadIO m 
=> GLfloat

d.

-> m () 

Manual page for OpenGL 4.x

glClearNamedBufferData Source

Arguments

:: MonadIO m 
=> GLuint

buffer.

-> GLenum

internalformat.

-> GLenum

format.

-> GLenum

type.

-> Ptr a

data.

-> m () 

Manual page for OpenGL 4.x

glClearNamedBufferSubData Source

Arguments

:: MonadIO m 
=> GLuint

buffer.

-> GLenum

internalformat.

-> GLintptr

offset.

-> GLsizeiptr

size of type BufferSize.

-> GLenum

format.

-> GLenum

type.

-> Ptr a

data.

-> m () 

Manual page for OpenGL 4.x

glClearNamedFramebufferfi Source

Arguments

:: MonadIO m 
=> GLuint

framebuffer.

-> GLenum

buffer.

-> GLfloat

depth.

-> GLint

stencil.

-> m () 

Manual page for OpenGL 4.x

glClearNamedFramebufferfv Source

Arguments

:: MonadIO m 
=> GLuint

framebuffer.

-> GLenum

buffer.

-> GLint

drawbuffer.

-> Ptr GLfloat

value.

-> m () 

Manual page for OpenGL 4.x

glClearNamedFramebufferiv Source

Arguments

:: MonadIO m 
=> GLuint

framebuffer.

-> GLenum

buffer.

-> GLint

drawbuffer.

-> Ptr GLint

value.

-> m () 

Manual page for OpenGL 4.x

glClearNamedFramebufferuiv Source

Arguments

:: MonadIO m 
=> GLuint

framebuffer.

-> GLenum

buffer.

-> GLint

drawbuffer.

-> Ptr GLuint

value.

-> m () 

Manual page fo