| OpenGL-2.2.3.0: A binding for the OpenGL graphics system | Source code | Contents | Index

Graphics.Rendering.OpenGL.GL.BasicTypes

Portability | portable
Stability | stable
Maintainer | sven.panne@aedion.de

Description
This module corresponds to section 2.3 (GL Command Sytax) of the OpenGL 2.1 specs.
Synopsis

type GLboolean = Word8
type GLbyte = Int8
type GLubyte = Word8
type GLchar = Int8
type GLshort = Int16
type GLushort = Word16
type GLint = Int32
type GLuint = Word32
type GLsizei = Int32
type GLenum = Word32
type GLintptr = Int64
type GLsizeiptr = Int64
type GLbitfield = Word32
type GLfloat = Float
type GLclampf = Float
type GLdouble = Double
type GLclampd = Double

data Capability

= Disabled
| Enabled

Documentation

type GLboolean = Word8 | Source

Boolean (min. 1 bit)

type GLbyte = Int8 | Source

Signed 2's complement binary integer (min. 8 bits)

type GLubyte = Word8 | Source

Unsigned binary integer (min. 8 bits)

type GLchar = Int8 | Source

Characters making up strings

type GLshort = Int16 | Source

Signed 2's complement binary integer (min. 16 bits)

type GLushort = Word16 | Source

Unsigned binary integer (min. 16 bits)

type GLint = Int32 | Source

Signed 2's complement binary integer (min. 32 bits)

type GLuint = Word32 | Source

Unsigned binary integer (min. 32 bits)

type GLsizei = Int32 | Source

Non-negatitve binary integer size (min. 32 bits)

type GLenum = Word32 | Source

Enumerated binary integer value (min. 32 bits)

type GLintptr = Int64 | Source

Signed 2's complement binary integer (sufficiently large enough to hold any address)

type GLsizeiptr = Int64 | Source

Non-negatitve binary integer size (sufficiently large enough to hold any address)

type GLbitfield = Word32 | Source

Bit field (min. 32 bits)

type GLfloat = Float | Source

Floating-point value (min. 32 bits)

type GLclampf = Float | Source

Floating-point value clamped to [0,1] (min. 32 bits)

type GLdouble = Double | Source

Floating-point value (min. 64 bits)

type GLclampd = Double | Source

Floating-point value clamped to [0,1] (min. 64 bits)

data Capability | Source

Constructors

Disabled |
Enabled |

Instances

Eq Capability
Ord Capability
Show Capability

Produced by Haddock version 2.4.2