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

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

Graphics.GL.Types

Contents

- Types from OpenGL itself.
- Pre-standard OpenGL types.
- Types from various extensions.
- Deprecated functions for `gl` compatibility.

Description

All types from the whole OpenGL registry.

Synopsis

- type GLboolean = Word8
- type GLbyte = Int8
- type GLubyte = Word8
- type GLchar = CChar
- type GLshort = Int16
- type GLushort = Word16
- type GLint = Int32
- type GLuint = Word32
- type GLfixed = Fixed
- type GLint64 = Int64
- type GLuint64 = Word64
- type GLsizei = Int32
- type GLenum = Word32
- type GLintptr = CPtrdiff
- type GLsizeiptr = CPtrdiff
- type GLsync = Ptr ()
- type GLbitfield = Word32
- type GLhalf = Half
- type GLfloat = Float
- type GLclampf = Float
- type GLdouble = Double
- type GLclampd = Double
- 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 = Fixed
- type GLhandleARB = Word32
- type GLvdpauSurfaceNV = GLintptr
- type GLeglImageOES = Ptr ()
- type GLeglClientBufferEXT = Ptr ()
- type GLVULKANPROCNVFunc = IO ()
- type GLVULKANPROCNV = FunPtr GLVULKANPROCNVFunc
- mkGLDEBUGPROC :: GLDEBUGPROCFunc -> IO (FunPtr GLDEBUGPROCFunc)
- mkGLDEBUGPROCAMD :: GLDEBUGPROCAMDFunc -> IO (FunPtr GLDEBUGPROCAMDFunc)
- mkGLDEBUGPROCARB :: GLDEBUGPROCARBFunc -> IO (FunPtr GLDEBUGPROCARBFunc)
- mkGLDEBUGPROCKHR :: GLDEBUGPROCKHRFunc -> IO (FunPtr GLDEBUGPROCKHRFunc)

# Types from OpenGL itself.

type GLboolean = Word8 Source #

8bit boolean.

type GLbyte = Int8 Source #

8bit signed two's complement binary integer.

type GLubyte = Word8 Source #

8bit unsigned binary integer.

type GLchar = CChar Source #

8bit characters making up strings.

type GLshort = Int16 Source #

16bit signed two's complement binary integer.

type GLushort = Word16 Source #

16bit unsigned binary integer.

type GLint = Int32 Source #

32bit signed two's complement binary integer.

type GLuint = Word32 Source #

32bit unsigned binary integer.

type GLfixed = Fixed Source #

32bit signed two's complement 16.16 scaled integer.

type GLint64 = Int64 Source #

64bit signed two's complement binary integer.

type GLuint64 = Word64 Source #

64bit unsigned binary integer.

type GLsizei = Int32 Source #

32bit non-negative binary integer size.

type GLenum = Word32 Source #

32bit enumerated binary integer value.

type GLintptr = CPtrdiff Source #

Pointer-sized signed two's complement binary integer.

type GLsizeiptr = CPtrdiff Source #

Pointer-sized non-negative binary integer size.

type GLsync = Ptr () Source #

Pointer-sized sync object handle.

type GLbitfield = Word32 Source #

32bit bit field.

type GLhalf = Half Source #

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

type GLfloat = Float Source #

32bit floating-point value.

type GLclampf = Float Source #

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

type GLdouble = Double Source #

64bit floating-point value.

type GLclampd = Double Source #

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

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.

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.

type GLvoid = () Source #

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

# Pre-standard OpenGL types.

type GLcharARB = CChar Source #

type GLint64EXT = Int64 Source #

type GLuint64EXT = Word64 Source #

type GLintptrARB = CPtrdiff Source #

type GLsizeiptrARB = CPtrdiff Source #

type GLhalfARB = Half Source #

type GLhalfNV = Half Source #

type GLDEBUGPROCAMD = FunPtr GLDEBUGPROCAMDFunc Source #

type GLDEBUGPROCAMDFunc Source #

Arguments

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

Debug callback.

makeGLDEBUGPROCAMD :: GLDEBUGPROCAMDFunc -> IO (FunPtr GLDEBUGPROCAMDFunc) Source #

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

type GLDEBUGPROCARB = GLDEBUGPROC Source #

type GLDEBUGPROCARBFunc = GLDEBUGPROCFunc Source #

makeGLDEBUGPROCARB :: GLDEBUGPROCARBFunc -> IO (FunPtr GLDEBUGPROCARBFunc) Source #

type GLDEBUGPROCKHR = GLDEBUGPROC Source #

type GLDEBUGPROCKHRFunc = GLDEBUGPROCFunc Source #

makeGLDEBUGPROCKHR :: GLDEBUGPROCKHRFunc -> IO (FunPtr GLDEBUGPROCKHRFunc) Source #

# Types from various extensions.

type GLclampx = Fixed Source #

type GLhandleARB = Word32 Source #

type GLvdpauSurfaceNV = GLintptr Source #

type GLeglImageOES = Ptr () Source #

type GLeglClientBufferEXT = Ptr () Source #

type GLVULKANPROCNVFunc = IO () Source #

type GLVULKANPROCNV = FunPtr GLVULKANPROCNVFunc Source #

# Deprecated functions for `gl` compatibility.

mkGLDEBUGPROC :: GLDEBUGPROCFunc -> IO (FunPtr GLDEBUGPROCFunc) Source #

Deprecated: Use `makeGLDEBUGPROC` instead.

mkGLDEBUGPROCAMD :: GLDEBUGPROCAMDFunc -> IO (FunPtr GLDEBUGPROCAMDFunc) Source #

Deprecated: Use `makeGLDEBUGPROCAMD` instead.

mkGLDEBUGPROCARB :: GLDEBUGPROCARBFunc -> IO (FunPtr GLDEBUGPROCARBFunc) Source #

Deprecated: Use `makekGLDEBUGPROCARB` instead.

mkGLDEBUGPROCKHR :: GLDEBUGPROCKHRFunc -> IO (FunPtr GLDEBUGPROCKHRFunc) Source #

Deprecated: Use `makeGLDEBUGPROCKHR` instead.