GLURaw-2.0.0.5: A raw binding for the OpenGL graphics system

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

Graphics.GLU.Callbacks

Contents

- Tessellator Callbacks
  - Tessellator Callbacks without Polygon Data
  - Tessellator Callbacks with Polygon Data
- Quadrics Callbacks
- NURBS Callbacks
  - NURBS Callbacks without User Data
  - NURBS Callbacks with User Data

Description

All callbacks from GLU 1.3, see http://www.opengl.org/.

Synopsis

- type TessBeginCallback = GLenum -> IO ()
- makeTessBeginCallback :: TessBeginCallback -> IO (FunPtr TessBeginCallback)
- type TessEdgeFlagCallback = GLboolean -> IO ()
- makeTessEdgeFlagCallback :: TessEdgeFlagCallback -> IO (FunPtr TessEdgeFlagCallback)
- type TessVertexCallback v = Ptr v -> IO ()
- makeTessVertexCallback :: TessVertexCallback v -> IO (FunPtr (TessVertexCallback v))
- type TessEndCallback = IO ()
- makeTessEndCallback :: TessEndCallback -> IO (FunPtr TessEndCallback)
- type TessErrorCallback = GLenum -> IO ()
- makeTessErrorCallback :: TessErrorCallback -> IO (FunPtr TessErrorCallback)
- type TessCombineCallback v = Ptr GLdouble -> Ptr (Ptr v) -> Ptr GLfloat -> Ptr (Ptr v) -> IO ()
- makeTessCombineCallback :: TessCombineCallback v -> IO (FunPtr (TessCombineCallback v))
- type TessBeginDataCallback p = GLenum -> Ptr p -> IO ()
- makeTessBeginDataCallback :: TessBeginDataCallback p -> IO (FunPtr (TessBeginDataCallback p))
- type TessEdgeFlagDataCallback p = GLboolean -> Ptr p -> IO ()
- makeTessEdgeFlagDataCallback :: TessEdgeFlagDataCallback p -> IO (FunPtr (TessEdgeFlagDataCallback p))
- type TessVertexDataCallback v p = Ptr v -> Ptr p -> IO ()
- makeTessVertexDataCallback :: TessVertexDataCallback v p -> IO (FunPtr (TessVertexDataCallback v p))
- type TessEndDataCallback p = Ptr p -> IO ()
- makeTessEndDataCallback :: TessEndDataCallback p -> IO (FunPtr (TessEndDataCallback p))
- type TessErrorDataCallback p = GLenum -> Ptr p -> IO ()
- makeTessErrorDataCallback :: TessErrorDataCallback p -> IO (FunPtr (TessErrorDataCallback p))
- type TessCombineDataCallback v p = Ptr GLdouble -> Ptr (Ptr v) -> Ptr GLfloat -> Ptr (Ptr v) -> Ptr p -> IO ()
- makeTessCombineDataCallback :: TessCombineDataCallback v p -> IO (FunPtr (TessCombineDataCallback v p))
- type QuadricCallback = GLenum -> IO ()
- makeQuadricCallback :: QuadricCallback -> IO (FunPtr QuadricCallback)
- type NURBSBeginCallback = GLenum -> IO ()
- makeNURBSBeginCallback :: NURBSBeginCallback -> IO (FunPtr NURBSBeginCallback)
- type NURBSVertexCallback = Ptr GLfloat -> IO ()
- makeNURBSVertexCallback :: NURBSVertexCallback -> IO (FunPtr NURBSVertexCallback)
- type NURBSNormalCallback = Ptr GLfloat -> IO ()
- makeNURBSNormalCallback :: NURBSNormalCallback -> IO (FunPtr NURBSNormalCallback)
- type NURBSColorCallback = Ptr GLfloat -> IO ()
- makeNURBSColorCallback :: NURBSColorCallback -> IO (FunPtr NURBSColorCallback)
- type NURBSTexCoordCallback = Ptr GLfloat -> IO ()
- makeNURBSTexCoordCallback :: NURBSTexCoordCallback -> IO (FunPtr NURBSTexCoordCallback)
- type NURBSEndCallback = IO ()
- makeNURBSEndCallback :: NURBSEndCallback -> IO (FunPtr NURBSEndCallback)
- type NURBSErrorCallback = GLenum -> IO ()
- makeNURBSErrorCallback :: NURBSErrorCallback -> IO (FunPtr NURBSErrorCallback)
- type NURBSBeginDataCallback u = GLenum -> Ptr u -> IO ()
- makeNURBSBeginDataCallback :: NURBSBeginDataCallback u -> IO (FunPtr (NURBSBeginDataCallback u))
- type NURBSVertexDataCallback u = Ptr GLfloat -> Ptr u -> IO ()
- makeNURBSVertexDataCallback :: NURBSVertexDataCallback u -> IO (FunPtr (NURBSVertexDataCallback u))
- type NURBSNormalDataCallback u = Ptr GLfloat -> Ptr u -> IO ()
- makeNURBSNormalDataCallback :: NURBSNormalDataCallback u -> IO (FunPtr (NURBSNormalDataCallback u))
- type NURBSColorDataCallback u = Ptr GLfloat -> Ptr u -> IO ()
- makeNURBSColorDataCallback :: NURBSColorDataCallback u -> IO (FunPtr (NURBSColorDataCallback u))
- type NURBSTexCoordDataCallback u = Ptr GLfloat -> Ptr u -> IO ()
- makeNURBSTexCoordDataCallback :: NURBSTexCoordDataCallback u -> IO (FunPtr (NURBSTexCoordDataCallback u))
- type NURBSEndDataCallback u = Ptr u -> IO ()
- makeNURBSEndDataCallback :: NURBSEndDataCallback u -> IO (FunPtr (NURBSEndDataCallback u))

# Tessellator Callbacks

## Tessellator Callbacks without Polygon Data

type TessBeginCallback = GLenum -> IO () Source #

makeTessBeginCallback :: TessBeginCallback -> IO (FunPtr TessBeginCallback) Source #

type TessEdgeFlagCallback = GLboolean -> IO () Source #

makeTessEdgeFlagCallback :: TessEdgeFlagCallback -> IO (FunPtr TessEdgeFlagCallback) Source #

type TessVertexCallback v = Ptr v -> IO () Source #

makeTessVertexCallback :: TessVertexCallback v -> IO (FunPtr (TessVertexCallback v)) Source #

type TessEndCallback = IO () Source #

makeTessEndCallback :: TessEndCallback -> IO (FunPtr TessEndCallback) Source #

type TessErrorCallback = GLenum -> IO () Source #

makeTessErrorCallback :: TessErrorCallback -> IO (FunPtr TessErrorCallback) Source #

type TessCombineCallback v = Ptr GLdouble -> Ptr (Ptr v) -> Ptr GLfloat -> Ptr (Ptr v) -> IO () Source #

makeTessCombineCallback :: TessCombineCallback v -> IO (FunPtr (TessCombineCallback v)) Source #

## Tessellator Callbacks with Polygon Data

type TessBeginDataCallback p = GLenum -> Ptr p -> IO () Source #

makeTessBeginDataCallback :: TessBeginDataCallback p -> IO (FunPtr (TessBeginDataCallback p)) Source #

type TessEdgeFlagDataCallback p = GLboolean -> Ptr p -> IO () Source #

makeTessEdgeFlagDataCallback :: TessEdgeFlagDataCallback p -> IO (FunPtr (TessEdgeFlagDataCallback p)) Source #

type TessVertexDataCallback v p = Ptr v -> Ptr p -> IO () Source #

makeTessVertexDataCallback :: TessVertexDataCallback v p -> IO (FunPtr (TessVertexDataCallback v p)) Source #

type TessEndDataCallback p = Ptr p -> IO () Source #

makeTessEndDataCallback :: TessEndDataCallback p -> IO (FunPtr (TessEndDataCallback p)) Source #

type TessErrorDataCallback p = GLenum -> Ptr p -> IO () Source #

makeTessErrorDataCallback :: TessErrorDataCallback p -> IO (FunPtr (TessErrorDataCallback p)) Source #

type TessCombineDataCallback v p = Ptr GLdouble -> Ptr (Ptr v) -> Ptr GLfloat -> Ptr (Ptr v) -> Ptr p -> IO () Source #

makeTessCombineDataCallback :: TessCombineDataCallback v p -> IO (FunPtr (TessCombineDataCallback v p)) Source #

# Quadrics Callbacks

type QuadricCallback = GLenum -> IO () Source #

makeQuadricCallback :: QuadricCallback -> IO (FunPtr QuadricCallback) Source #

# NURBS Callbacks

## NURBS Callbacks without User Data

type NURBSBeginCallback = GLenum -> IO () Source #

makeNURBSBeginCallback :: NURBSBeginCallback -> IO (FunPtr NURBSBeginCallback) Source #

type NURBSVertexCallback = Ptr GLfloat -> IO () Source #

makeNURBSVertexCallback :: NURBSVertexCallback -> IO (FunPtr NURBSVertexCallback) Source #

type NURBSNormalCallback = Ptr GLfloat -> IO () Source #

makeNURBSNormalCallback :: NURBSNormalCallback -> IO (FunPtr NURBSNormalCallback) Source #

type NURBSColorCallback = Ptr GLfloat -> IO () Source #

makeNURBSColorCallback :: NURBSColorCallback -> IO (FunPtr NURBSColorCallback) Source #

type NURBSTexCoordCallback = Ptr GLfloat -> IO () Source #

makeNURBSTexCoordCallback :: NURBSTexCoordCallback -> IO (FunPtr NURBSTexCoordCallback) Source #

type NURBSEndCallback = IO () Source #

makeNURBSEndCallback :: NURBSEndCallback -> IO (FunPtr NURBSEndCallback) Source #

type NURBSErrorCallback = GLenum -> IO () Source #

makeNURBSErrorCallback :: NURBSErrorCallback -> IO (FunPtr NURBSErrorCallback) Source #

## NURBS Callbacks with User Data

type NURBSBeginDataCallback u = GLenum -> Ptr u -> IO () Source #

makeNURBSBeginDataCallback :: NURBSBeginDataCallback u -> IO (FunPtr (NURBSBeginDataCallback u)) Source #

type NURBSVertexDataCallback u = Ptr GLfloat -> Ptr u -> IO () Source #

makeNURBSVertexDataCallback :: NURBSVertexDataCallback u -> IO (FunPtr (NURBSVertexDataCallback u)) Source #

type NURBSNormalDataCallback u = Ptr GLfloat -> Ptr u -> IO () Source #

makeNURBSNormalDataCallback :: NURBSNormalDataCallback u -> IO (FunPtr (NURBSNormalDataCallback u)) Source #

type NURBSColorDataCallback u = Ptr GLfloat -> Ptr u -> IO () Source #

makeNURBSColorDataCallback :: NURBSColorDataCallback u -> IO (FunPtr (NURBSColorDataCallback u)) Source #

type NURBSTexCoordDataCallback u = Ptr GLfloat -> Ptr u -> IO () Source #

makeNURBSTexCoordDataCallback :: NURBSTexCoordDataCallback u -> IO (FunPtr (NURBSTexCoordDataCallback u)) Source #

type NURBSEndDataCallback u = Ptr u -> IO () Source #

makeNURBSEndDataCallback :: NURBSEndDataCallback u -> IO (FunPtr (NURBSEndDataCallback u)) Source #