OpenGL-2.13.1.0: A binding for the OpenGL graphics system

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

Graphics.Rendering.OpenGL.GL.Feedback

Description

This module corresponds to section 5.3 (Feedback) of the OpenGL 2.1 specs.

# Documentation

data FeedbackToken

Constructors

PointToken VertexInfo |
LineToken VertexInfo VertexInfo |
LineResetToken VertexInfo VertexInfo |
PolygonToken [VertexInfo] |
BitmapToken VertexInfo |
DrawPixelToken VertexInfo |
CopyPixelToken VertexInfo |
PassThroughToken PassThroughValue |

Instances

Eq FeedbackToken |
Ord FeedbackToken |
Show FeedbackToken |

data VertexInfo

Constructors

Vertex2D (Vertex2 GLfloat) |
Vertex3D (Vertex3 GLfloat) |
Vertex3DColor (Vertex3 GLfloat) ColorInfo |
Vertex3DColorTexture (Vertex3 GLfloat) ColorInfo (TexCoord4 GLfloat) |
Vertex4DColorTexture (Vertex4 GLfloat) ColorInfo (TexCoord4 GLfloat) |

Instances

Eq VertexInfo |
Ord VertexInfo |
Show VertexInfo |

type ColorInfo = Either (Index1 GLint) (Color4 GLfloat)

data FeedbackType

Constructors

TwoD |
ThreeD |
ThreeDColor |
ThreeDColorTexture |
FourDColorTexture |

Instances

Eq FeedbackType |
Ord FeedbackType |
Show FeedbackType |

getFeedbackTokens :: GLsizei -> FeedbackType -> IO a -> IO (a, Maybe [FeedbackToken])

newtype PassThroughValue

Constructors

PassThroughValue GLfloat |

Instances

Eq PassThroughValue |
Ord PassThroughValue |
Show PassThroughValue |

passThrough :: PassThroughValue -> IO ()