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

Copyright | (c) Sven Panne 2013
License | BSD3
Maintainer | Sven Panne <svenpanne@gmail.com>
Stability | stable
Portability | portable
Safe Haskell | Safe-Inferred
Language | Haskell98

Graphics.Rendering.OpenGL.Raw.Core31.Types

Description

This module corresponds to table 2.2 in section 2.3 (Command Syntax) of the OpenGL 3.1 specs.

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 GLsizei = CInt
- type GLenum = CUInt
- type GLintptr = CPtrdiff
- type GLsizeiptr = CPtrdiff
- type GLbitfield = CUInt
- type GLhalf = CUShort
- type GLfloat = CFloat
- type GLclampf = CFloat
- type GLdouble = CDouble
- type GLclampd = CDouble

# Documentation

type GLboolean = CUChar

1bit 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 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 GLbitfield = CUInt

32bit bit field.

type GLhalf = CUShort

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] (no longer used in OpenGL 4.3).

type GLdouble = CDouble

64bit floating-point value.

type GLclampd = CDouble

64bit floating-point value clamped to [0, 1] (no longer used in OpenGL 4.3).