OpenGL-2.9.2.0: A binding for the OpenGL graphics system

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

Graphics.Rendering.OpenGL.GL.TransformFeedback

Contents

- starting and ending
- TransformFeedbackBufferMode
- Shader related
- limits

Description

Synopsis

- beginTransformFeedback :: PrimitiveMode -> IO ()
- endTransformFeedback :: IO ()
- data TransformFeedbackBufferMode
  - = InterleavedAttribs
  - | SeperateAttribs
- marshalTransformFeedbackBufferMode :: TransformFeedbackBufferMode -> GLenum
- unmarshalTransformFeedbackBufferMode :: GLenum -> TransformFeedbackBufferMode
- transformFeedbackBufferMode :: Program -> GettableStateVar TransformFeedbackBufferMode
- transformFeedbackVaryings :: Program -> GettableStateVar [(GLint, DataType, String)]
- setTransformFeedbackVaryings :: Program -> [String] -> TransformFeedbackBufferMode -> IO ()
- maxTransformFeedbackSeparateAttribs :: GettableStateVar GLint
- maxTransformFeedbackInterleavedComponents :: GettableStateVar GLint
- maxTransformFeedbackSeparateComponents :: GettableStateVar GLint

# starting and ending

beginTransformFeedback :: PrimitiveMode -> IO ()

endTransformFeedback :: IO ()

# TransformFeedbackBufferMode

data TransformFeedbackBufferMode

Constructors

InterleavedAttribs |
SeperateAttribs |

Instances

Eq TransformFeedbackBufferMode |
Ord TransformFeedbackBufferMode |
Show TransformFeedbackBufferMode |

marshalTransformFeedbackBufferMode :: TransformFeedbackBufferMode -> GLenum

unmarshalTransformFeedbackBufferMode :: GLenum -> TransformFeedbackBufferMode

# Shader related

transformFeedbackBufferMode :: Program -> GettableStateVar TransformFeedbackBufferMode

Get the currently used transformFeedbackBufferMode

transformFeedbackVaryings :: Program -> GettableStateVar [(GLint, DataType, String)]

The name, datatype and size of the transform feedback varyings.

setTransformFeedbackVaryings :: Program -> [String] -> TransformFeedbackBufferMode -> IO ()

Set all the transform feedbacks varyings for this program it overwrites any previous call to this function

# limits

maxTransformFeedbackSeparateAttribs :: GettableStateVar GLint

Max number of seprate atributes or varyings than can be captured in transformfeedback, initial value 4

maxTransformFeedbackInterleavedComponents :: GettableStateVar GLint

Max number of components to write to a single buffer in interleaved mod, initial value 64

maxTransformFeedbackSeparateComponents :: GettableStateVar GLint

Max number of components per attribute or varying in seperate mode initial value 4