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

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

Graphics.Rendering.OpenGL.Raw.Types

Contents

Description

All types from the whole OpenGL registry.

Synopsis

Types from OpenGL itself.

type GLboolean = CUChar Source

8bit boolean.

type GLbyte = CSChar Source

8bit signed two's complement binary integer.

type GLubyte = CUChar Source

8bit unsigned binary integer.

type GLchar = CChar Source

8bit characters making up strings.

type GLshort = CShort Source

16bit signed two's complement binary integer.

type GLushort = CUShort Source

16bit unsigned binary integer.

type GLint = CInt Source

32bit signed two's complement binary integer.

type GLuint = CUInt Source

32bit unsigned binary integer.

type GLfixed = CInt 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 = CInt Source

32bit non-negative binary integer size.

type GLenum = CUInt 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 = CUInt Source

32bit bit field.

type GLhalf = CUShort Source

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

type GLfloat = CFloat Source

32bit floating-point value.

type GLclampf = CFloat Source

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

type GLdouble = CDouble Source

64bit floating-point value.

type GLclampd = CDouble 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 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.

Types from various extensions.