-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.EXT.ProvokingVertex (
  -- * Extension Support
    gl_EXT_provoking_vertex

  -- * GL_EXT_provoking_vertex
  , glProvokingVertexEXT
  , pattern GL_FIRST_VERTEX_CONVENTION_EXT
  , pattern GL_LAST_VERTEX_CONVENTION_EXT
  , pattern GL_PROVOKING_VERTEX_EXT
  , pattern GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT
) 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.Internal.Shared
import Graphics.GL.Types
import System.IO.Unsafe

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

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

-- | Usage: @'glProvokingVertexEXT' mode@
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glProvokingVertex'.


glProvokingVertexEXT :: MonadIO m => GLenum -> m ()
glProvokingVertexEXT :: GLenum -> m ()
glProvokingVertexEXT = FunPtr (GLenum -> IO ()) -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> IO ()) -> GLenum -> m ()
ffienumIOV FunPtr (GLenum -> IO ())
glProvokingVertexEXTFunPtr

glProvokingVertexEXTFunPtr :: FunPtr (GLenum -> IO ())
glProvokingVertexEXTFunPtr :: FunPtr (GLenum -> IO ())
glProvokingVertexEXTFunPtr = IO (FunPtr (GLenum -> IO ())) -> FunPtr (GLenum -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glProvokingVertexEXT")

{-# NOINLINE glProvokingVertexEXTFunPtr #-}

pattern $bGL_PROVOKING_VERTEX_EXT :: a
$mGL_PROVOKING_VERTEX_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PROVOKING_VERTEX_EXT = 0x8E4F

pattern $bGL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT :: a
$mGL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT = 0x8E4C