OpenGL-3.0.3.0: A binding for the OpenGL graphics system

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

Graphics.Rendering.OpenGL.GL.TransformFeedback

Contents

- starting and ending
- TransformFeedbackBufferMode
- Shader related
- limits

Description

Synopsis

- beginTransformFeedback :: PrimitiveMode -> IO ()
- endTransformFeedback :: IO ()
- data TransformFeedbackBufferMode
  - = InterleavedAttribs
  - | SeparateAttribs
  - | 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 () Source #

endTransformFeedback :: IO () Source #

# TransformFeedbackBufferMode

data TransformFeedbackBufferMode Source #

Constructors

InterleavedAttribs |
SeparateAttribs |
SeperateAttribs | Deprecated: Use `SeparateAttribs` instead.

#### Instances

Instances details

Show TransformFeedbackBufferMode Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.TransformFeedback Methods showsPrec :: Int -> TransformFeedbackBufferMode -> ShowS Source # show :: TransformFeedbackBufferMode -> String Source # showList :: [TransformFeedbackBufferMode] -> ShowS Source #
Eq TransformFeedbackBufferMode Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.TransformFeedback Methods (==) :: TransformFeedbackBufferMode -> TransformFeedbackBufferMode -> Bool Source # (/=) :: TransformFeedbackBufferMode -> TransformFeedbackBufferMode -> Bool Source #
Ord TransformFeedbackBufferMode Source # |

Instance details

Defined in Graphics.Rendering.OpenGL.GL.TransformFeedback

Methods

compare :: TransformFeedbackBufferMode -> TransformFeedbackBufferMode -> Ordering Source #

(<) :: TransformFeedbackBufferMode -> TransformFeedbackBufferMode -> Bool Source #

(<=) :: TransformFeedbackBufferMode -> TransformFeedbackBufferMode -> Bool Source #

(>) :: TransformFeedbackBufferMode -> TransformFeedbackBufferMode -> Bool Source #

(>=) :: TransformFeedbackBufferMode -> TransformFeedbackBufferMode -> Bool Source #

max :: TransformFeedbackBufferMode -> TransformFeedbackBufferMode -> TransformFeedbackBufferMode Source #

min :: TransformFeedbackBufferMode -> TransformFeedbackBufferMode -> TransformFeedbackBufferMode Source #

marshalTransformFeedbackBufferMode :: TransformFeedbackBufferMode -> GLenum Source #

unmarshalTransformFeedbackBufferMode :: GLenum -> TransformFeedbackBufferMode Source #

# Shader related

transformFeedbackBufferMode :: Program -> GettableStateVar TransformFeedbackBufferMode Source #

Get the currently used transformFeedbackBufferMode

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

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

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

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

# limits

maxTransformFeedbackSeparateAttribs :: GettableStateVar GLint Source #

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

maxTransformFeedbackInterleavedComponents :: GettableStateVar GLint Source #

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

maxTransformFeedbackSeparateComponents :: GettableStateVar GLint Source #

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