-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.NV.PrimitiveRestart (
  -- * Extension Support
    gl_NV_primitive_restart

  -- * GL_NV_primitive_restart
  , glPrimitiveRestartIndexNV
  , glPrimitiveRestartNV
  , pattern GL_PRIMITIVE_RESTART_INDEX_NV
  , pattern GL_PRIMITIVE_RESTART_NV
) where

import Control.Monad.IO.Class
import Data.Set
import Foreign.Ptr
import Graphics.GL.Internal.FFI
import Graphics.GL.Internal.Proc
import Graphics.GL.Types
import System.IO.Unsafe

-- | Checks that the <https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/specs/NV/primitive_restart.txt GL_NV_primitive_restart> extension is available.

gl_NV_primitive_restart :: Bool
gl_NV_primitive_restart :: Bool
gl_NV_primitive_restart = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_NV_primitive_restart" Set [Char]
extensions
{-# NOINLINE gl_NV_primitive_restart #-}

-- | Usage: @'glPrimitiveRestartIndexNV' index@


glPrimitiveRestartIndexNV :: MonadIO m => GLuint -> m ()
glPrimitiveRestartIndexNV :: GLuint -> m ()
glPrimitiveRestartIndexNV = FunPtr (GLuint -> IO ()) -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> IO ()) -> GLuint -> m ()
ffiuintIOV FunPtr (GLuint -> IO ())
glPrimitiveRestartIndexNVFunPtr

glPrimitiveRestartIndexNVFunPtr :: FunPtr (GLuint -> IO ())
glPrimitiveRestartIndexNVFunPtr :: FunPtr (GLuint -> IO ())
glPrimitiveRestartIndexNVFunPtr = IO (FunPtr (GLuint -> IO ())) -> FunPtr (GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glPrimitiveRestartIndexNV")

{-# NOINLINE glPrimitiveRestartIndexNVFunPtr #-}

-- | Usage: @'glPrimitiveRestartNV'@


glPrimitiveRestartNV :: MonadIO m => m ()
glPrimitiveRestartNV :: m ()
glPrimitiveRestartNV = FunPtr (IO ()) -> m ()
forall (m :: * -> *). MonadIO m => FunPtr (IO ()) -> m ()
ffiIOV FunPtr (IO ())
glPrimitiveRestartNVFunPtr

glPrimitiveRestartNVFunPtr :: FunPtr (IO ())
glPrimitiveRestartNVFunPtr :: FunPtr (IO ())
glPrimitiveRestartNVFunPtr = IO (FunPtr (IO ())) -> FunPtr (IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glPrimitiveRestartNV")

{-# NOINLINE glPrimitiveRestartNVFunPtr #-}

pattern $bGL_PRIMITIVE_RESTART_INDEX_NV :: a
$mGL_PRIMITIVE_RESTART_INDEX_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PRIMITIVE_RESTART_INDEX_NV = 0x8559

pattern $bGL_PRIMITIVE_RESTART_NV :: a
$mGL_PRIMITIVE_RESTART_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PRIMITIVE_RESTART_NV = 0x8558