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

Copyright | (c) Sven Panne 2009-2015
License | BSD3
Maintainer | Sven Panne <svenpanne@gmail.com>
Stability | stable
Portability | portable
Safe Haskell | None
Language | Haskell2010

Graphics.Rendering.OpenGL.Raw.Types

Contents

- Types from OpenGL itself.
- Pre-standard OpenGL types.
- Types from various extensions.

Description

All types from the whole OpenGL registry.

Synopsis

- type GLboolean = CUChar
- type GLbyte = CSChar
- type GLubyte = CUChar
- type GLchar = CChar
- type GLshort = CShort
- type GLushort = CUShort
- type GLint = CInt
- type GLuint = CUInt
- type GLfixed = CInt
- type GLint64 = Int64
- type GLuint64 = Word64
- type GLsizei = CInt
- type GLenum = CUInt
- type GLintptr = CPtrdiff
- type GLsizeiptr = CPtrdiff
- type GLsync = Ptr ()
- type GLbitfield = CUInt
- type GLhalf = Half
- type GLfloat = CFloat
- type GLclampf = CFloat
- type GLdouble = CDouble
- type GLclampd = CDouble
- type GLDEBUGPROC = FunPtr GLDEBUGPROCFunc
- type GLDEBUGPROCFunc = GLenum -> GLenum -> GLuint -> GLenum -> GLsizei -> Ptr GLchar -> Ptr () -> IO ()
- makeGLDEBUGPROC :: GLDEBUGPROCFunc -> IO (FunPtr GLDEBUGPROCFunc)
- type GLvoid = ()
- type GLcharARB = CChar
- type GLint64EXT = Int64
- type GLuint64EXT = Word64
- type GLintptrARB = CPtrdiff
- type GLsizeiptrARB = CPtrdiff
- type GLhalfARB = Half
- type GLhalfNV = Half
- type GLDEBUGPROCAMD = FunPtr GLDEBUGPROCAMDFunc
- type GLDEBUGPROCAMDFunc = GLuint -> GLenum -> GLenum -> GLsizei -> Ptr GLchar -> Ptr () -> IO ()
- makeGLDEBUGPROCAMD :: GLDEBUGPROCAMDFunc -> IO (FunPtr GLDEBUGPROCAMDFunc)
- type GLDEBUGPROCARB = GLDEBUGPROC
- type GLDEBUGPROCARBFunc = GLDEBUGPROCFunc
- makeGLDEBUGPROCARB :: GLDEBUGPROCARBFunc -> IO (FunPtr GLDEBUGPROCARBFunc)
- type GLDEBUGPROCKHR = GLDEBUGPROC
- type GLDEBUGPROCKHRFunc = GLDEBUGPROCFunc
- makeGLDEBUGPROCKHR :: GLDEBUGPROCKHRFunc -> IO (FunPtr GLDEBUGPROCKHRFunc)
- type GLclampx = CInt
- type GLhandleARB = CUInt
- type GLvdpauSurfaceNV = GLintptr
- type GLeglImageOES = Ptr ()

# Types from OpenGL itself.

type GLboolean = CUChar

8bit boolean.

type GLbyte = CSChar

8bit signed two's complement binary integer.

type GLubyte = CUChar

8bit unsigned binary integer.

type GLchar = CChar

8bit characters making up strings.

type GLshort = CShort

16bit signed two's complement binary integer.

type GLushort = CUShort

16bit unsigned binary integer.

type GLint = CInt

32bit signed two's complement binary integer.

type GLuint = CUInt

32bit unsigned binary integer.

type GLfixed = CInt

32bit signed two's complement 16.16 scaled integer.

type GLint64 = Int64

64bit signed two's complement binary integer.

type GLuint64 = Word64

64bit unsigned binary integer.

type GLsizei = CInt

32bit non-negative binary integer size.

type GLenum = CUInt

32bit enumerated binary integer value.

type GLintptr = CPtrdiff

Pointer-sized signed two's complement binary integer.

type GLsizeiptr = CPtrdiff

Pointer-sized non-negative binary integer size.

type GLsync = Ptr ()

Pointer-sized sync object handle.

type GLbitfield = CUInt

32bit bit field.

type GLhalf = Half

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

type GLfloat = CFloat

32bit floating-point value.

type GLclampf = CFloat

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

type GLdouble = CDouble

64bit floating-point value.

type GLclampd = CDouble

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

type GLDEBUGPROC = FunPtr GLDEBUGPROCFunc

A pointer to a debug callback.

type GLDEBUGPROCFunc

Arguments

= GLenum | `source`.
-> GLenum | `type`.
-> GLuint | `id`.
-> GLenum | `severity`.
-> GLsizei | `length`.
-> Ptr GLchar | `message`.
-> Ptr () | `userParam`.
-> IO () |

Debug callback.

makeGLDEBUGPROC :: GLDEBUGPROCFunc -> IO (FunPtr GLDEBUGPROCFunc)

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

type GLvoid = ()

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

# Pre-standard OpenGL types.

type GLcharARB = CChar

type GLint64EXT = Int64

type GLuint64EXT = Word64

type GLintptrARB = CPtrdiff

type GLsizeiptrARB = CPtrdiff

type GLhalfARB = Half

type GLhalfNV = Half

type GLDEBUGPROCAMD = FunPtr GLDEBUGPROCAMDFunc

type GLDEBUGPROCAMDFunc

Arguments

= GLuint | `id`.
-> GLenum | `category`.
-> GLenum | `severity`.
-> GLsizei | `length`.
-> Ptr GLchar | `message`.
-> Ptr () | `userParam`.
-> IO () |

Debug callback.

makeGLDEBUGPROCAMD :: GLDEBUGPROCAMDFunc -> IO (FunPtr GLDEBUGPROCAMDFunc)

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

type GLDEBUGPROCARB = GLDEBUGPROC

type GLDEBUGPROCARBFunc = GLDEBUGPROCFunc

makeGLDEBUGPROCARB :: GLDEBUGPROCARBFunc -> IO (FunPtr GLDEBUGPROCARBFunc)

type GLDEBUGPROCKHR = GLDEBUGPROC

type GLDEBUGPROCKHRFunc = GLDEBUGPROCFunc

makeGLDEBUGPROCKHR :: GLDEBUGPROCKHRFunc -> IO (FunPtr GLDEBUGPROCKHRFunc)

# Types from various extensions.

type GLclampx = CInt

type GLhandleARB = CUInt

type GLvdpauSurfaceNV = GLintptr

type GLeglImageOES = Ptr ()