    {-# LANGUAGE ForeignFunctionInterface, CPP #-}
    --------------------------------------------------------------------------------
    -- |
    -- Module      :  Graphics.Rendering.OpenGL.Raw.NV.PrimitiveRestart
    -- 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_primitive_restart extension not
    -- already in the OpenGL 3.1 core, see
    -- <http://www.opengl.org/registry/specs/NV/primitive_restart.txt>.
    -- NOTE: The OpenGL 3.1 core has some functions and tokens with the same names,
    -- but with different semantics and values, so we use a suffix in those cases.
    --
    --------------------------------------------------------------------------------

    module Graphics.Rendering.OpenGL.Raw.NV.PrimitiveRestart (
       -- * Functions
       glPrimitiveRestart,
       glPrimitiveRestartIndexNV,
       -- * Tokens
       gl_PRIMITIVE_RESTART_NV,
       gl_PRIMITIVE_RESTART_INDEX_NV
    ) where

    import Graphics.Rendering.OpenGL.Raw.Core32
    import Graphics.Rendering.OpenGL.Raw.Extensions

    #include "HsOpenGLRaw.h"

    extensionNameString :: String
    extensionNameString = "GL_NV_primitive_restart"

    EXTENSION_ENTRY(glPrimitiveRestart, IO ())
    EXTENSION_ENTRY(glPrimitiveRestartIndexNV,GLuint -> IO ())

    gl_PRIMITIVE_RESTART_NV :: GLenum
    gl_PRIMITIVE_RESTART_NV = 0x8558

    gl_PRIMITIVE_RESTART_INDEX_NV :: GLenum
    gl_PRIMITIVE_RESTART_INDEX_NV = 0x8559