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

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

Graphics.GL.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 = Word32 Source #

32bit bit field.

type GLboolean = Word8 Source #

8bit boolean.

type GLbyte = Int8 Source #

8bit signed two's complement binary integer.

type GLchar = CChar Source #

8bit characters making up strings.

type GLclampd = Double Source #

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

type GLclampf = Float Source #

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

type GLdouble = Double Source #

64bit floating-point value.

type GLenum = Word32 Source #

32bit enumerated binary integer value.

type GLfloat = Float Source #

32bit floating-point value.

type GLhalf = Half Source #

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

type GLint = Int32 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 = Int16 Source #

16bit signed two's complement binary integer.

type GLsizei = Int32 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 = Word8 Source #

8bit unsigned binary integer.

type GLuint = Word32 Source #

32bit unsigned binary integer.

type GLuint64 = Word64 Source #

64bit unsigned binary integer.

type GLushort = Word16 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

pattern GL_ALPHA :: GLenum Source #

pattern GL_AND :: GLenum Source #

pattern GL_BACK :: GLenum Source #

pattern GL_BGR :: GLenum Source #

pattern GL_BGRA :: GLenum Source #

pattern GL_BLEND :: GLenum Source #

pattern GL_BLUE :: GLenum Source #

pattern GL_BOOL :: GLenum Source #

pattern GL_BYTE :: GLenum Source #

pattern GL_CCW :: GLenum Source #

pattern GL_CLEAR :: GLenum Source #

pattern GL_COLOR :: GLenum Source #

pattern GL_COPY :: GLenum Source #

pattern GL_CW :: GLenum Source #

pattern GL_DECR :: GLenum Source #

pattern GL_DEPTH :: GLenum Source #

pattern GL_EQUAL :: GLenum Source #

pattern GL_EQUIV :: GLenum Source #

pattern GL_FILL :: GLenum Source #

pattern GL_FIXED :: GLenum Source #

pattern GL_FLOAT :: GLenum Source #

pattern GL_FRONT :: GLenum Source #

pattern GL_GREEN :: GLenum Source #

pattern GL_INCR :: GLenum Source #

pattern GL_INT :: GLenum Source #

pattern GL_KEEP :: GLenum Source #

pattern GL_LEFT :: GLenum Source #

pattern GL_LESS :: GLenum Source #

pattern GL_LINE :: GLenum Source #

pattern GL_LINES :: GLenum Source #

pattern GL_MAX :: GLenum Source #

pattern GL_MIN :: GLenum Source #

pattern GL_NAND :: GLenum Source #

pattern GL_NEVER :: GLenum Source #

pattern GL_NONE :: GLenum Source #

pattern GL_NOOP :: GLenum Source #

pattern GL_NOR :: GLenum Source #

pattern GL_ONE :: GLenum Source #

pattern GL_OR :: GLenum Source #

pattern GL_POINT :: GLenum Source #

pattern GL_QUADS :: GLenum Source #

pattern GL_QUERY :: GLenum Source #

pattern GL_R16 :: GLenum Source #

pattern GL_R16F :: GLenum Source #

pattern GL_R16I :: GLenum Source #

pattern GL_R16UI :: GLenum Source #

pattern GL_R32F :: GLenum Source #

pattern GL_R32I :: GLenum Source #

pattern GL_R32UI :: GLenum Source #

pattern GL_R8 :: GLenum Source #

pattern GL_R8I :: GLenum Source #

pattern GL_R8UI :: GLenum Source #

pattern GL_RED :: GLenum Source #

pattern GL_RG :: GLenum Source #

pattern GL_RG16 :: GLenum Source #

pattern GL_RG16F :: GLenum Source #

pattern GL_RG16I :: GLenum Source #

pattern GL_RG32F :: GLenum Source #

pattern GL_RG32I :: GLenum Source #

pattern GL_RG8 :: GLenum Source #

pattern GL_RG8I :: GLenum Source #

pattern GL_RG8UI :: GLenum Source #

pattern GL_RGB :: GLenum Source #

pattern GL_RGB10 :: GLenum Source #

pattern GL_RGB12 :: GLenum Source #

pattern GL_RGB16 :: GLenum Source #

pattern GL_RGB4 :: GLenum Source #

pattern GL_RGB5 :: GLenum Source #

pattern GL_RGB8 :: GLenum Source #

pattern GL_RGB8I :: GLenum Source #

pattern GL_RGBA :: GLenum Source #

pattern GL_RGBA2 :: GLenum Source #

pattern GL_RGBA4 :: GLenum Source #

pattern GL_RGBA8 :: GLenum Source #

pattern GL_RIGHT :: GLenum Source #

pattern GL_SET :: GLenum Source #

pattern GL_SHORT :: GLenum Source #

pattern GL_SRGB :: GLenum Source #

pattern GL_SRGB8 :: GLenum Source #

pattern GL_TYPE :: GLenum Source #

pattern GL_XOR :: GLenum Source #

pattern GL_ZERO :: GLenum Source #

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 of type QueryTarget.

-> GLuint

id.

-> m () 

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

glBeginQueryIndexed Source #

Arguments

:: MonadIO m 
=> GLenum

target of type QueryTarget.

-> GLuint

index.

-> GLuint

id.

-> m () 

Manual page for OpenGL 4.x.

glBeginTransformFeedback Source #

Arguments

:: MonadIO m 
=> GLenum

primitiveMode of type PrimitiveType.

-> 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 of type BufferTargetARB.

-> GLuint

index.

-> GLuint

buffer.

-> m () 

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

glBindBufferRange Source #

Arguments

:: MonadIO m 
=> GLenum

target of type BufferTargetARB.

-> 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 of type BufferTargetARB.

-> 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 of type BufferTargetARB.

-> 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 of type BufferAccessARB.

-> GLenum

format of type InternalFormat.

-> m ()<