    {-# LANGUAGE ForeignFunctionInterface, CPP #-}
    --------------------------------------------------------------------------------
    -- |
    -- Module      :  Graphics.Rendering.OpenGL.Raw.NV.TransformFeedback2
    -- Copyright   :  (c) Sven Panne 2009
    -- License     :  BSD-style (see the file LICENSE)
    --
    -- Maintainer  :  sven.panne@aedion.de
    -- Stability   :  stable
    -- Portability :  portable
    --
    -- All raw functions and tokens from the NV_transform_feedback2 extension, see
    -- <http://www.opengl.org/registry/specs/NV/transform_feedback2.txt>.
    --
    --------------------------------------------------------------------------------

    module Graphics.Rendering.OpenGL.Raw.NV.TransformFeedback2 (
       -- * Functions
       glBindTransformFeedback,
       glDeleteTransformFeedbacks,
       glGenTransformFeedbacks,
       glIsTransformFeedback,
       glPauseTransformFeedback,
       glResumeTransformFeedback,
       glDrawTransformFeedback,
       -- * Tokens
       gl_TRANSFORM_FEEDBACK,
       gl_TRANSFORM_FEEDBACK_BUFFER_PAUSED,
       gl_TRANSFORM_FEEDBACK_BUFFER_ACTIVE,
       gl_TRANSFORM_FEEDBACK_BINDING
    ) where

    import Foreign.Ptr
    import Foreign.C.Types
    import Graphics.Rendering.OpenGL.Raw.Core32
    import Graphics.Rendering.OpenGL.Raw.Extensions

    #include "HsOpenGLRaw.h"

    extensionNameString :: String
    extensionNameString = "GL_NV_transform_feedback2"

    EXTENSION_ENTRY(glBindTransformFeedback,GLenum -> GLuint -> IO ())
    EXTENSION_ENTRY(glDeleteTransformFeedbacks,GLsizei -> Ptr GLuint -> IO ())
    EXTENSION_ENTRY(glGenTransformFeedbacks,GLsizei -> Ptr GLuint -> IO ())
    EXTENSION_ENTRY(glIsTransformFeedback,GLuint -> IO GLboolean)
    EXTENSION_ENTRY(glPauseTransformFeedback,IO ())
    EXTENSION_ENTRY(glResumeTransformFeedback,IO ())
    EXTENSION_ENTRY(glDrawTransformFeedback,GLenum -> GLuint -> IO ())

    gl_TRANSFORM_FEEDBACK :: GLenum
    gl_TRANSFORM_FEEDBACK = 0x8E22

    gl_TRANSFORM_FEEDBACK_BUFFER_PAUSED :: GLenum
    gl_TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23

    gl_TRANSFORM_FEEDBACK_BUFFER_ACTIVE :: GLenum
    gl_TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24

    gl_TRANSFORM_FEEDBACK_BINDING :: GLenum
    gl_TRANSFORM_FEEDBACK_BINDING = 0x8E25