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

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

Graphics.GL.Types

Contents

Description

All types from the whole OpenGL registry.

Synopsis

Types from OpenGL itself.

type GLboolean = Word8 #

8bit boolean.

type GLbyte = Int8 #

8bit signed two's complement binary integer.

type GLubyte = Word8 #

8bit unsigned binary integer.

type GLchar = CChar #

8bit characters making up strings.

type GLshort = Int16 #

16bit signed two's complement binary integer.

type GLushort = Word16 #

16bit unsigned binary integer.

type GLint = Int32 #

32bit signed two's complement binary integer.

type GLuint = Word32 #

32bit unsigned binary integer.

type GLfixed = Fixed #

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 = Int32 #

32bit non-negative binary integer size.

type GLenum = Word32 #

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 = Word32 #

32bit bit field.

type GLhalf = Half #

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

type GLfloat = Float #

32bit floating-point value.

type GLclampf = Float #

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

type GLdouble = Double #

64bit floating-point value.

type GLclampd = Double #

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 GLhalfNV = Half #

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.

Types from various extensions.

type GLeglImageOES = Ptr () #

Deprecated functions for gl compatibility.

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

Deprecated: Use makekGLDEBUGPROCARB instead.