-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.AMD.StencilOperationExtended (
  -- * Extension Support
    gl_AMD_stencil_operation_extended

  -- * GL_AMD_stencil_operation_extended
  , glStencilOpValueAMD
  , pattern GL_REPLACE_VALUE_AMD
  , pattern GL_SET_AMD
  , pattern GL_STENCIL_BACK_OP_VALUE_AMD
  , pattern GL_STENCIL_OP_VALUE_AMD
) 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/AMD/stencil_operation_extended.txt GL_AMD_stencil_operation_extended> extension is available.

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

-- | Usage: @'glStencilOpValueAMD' face value@
--
-- The parameter @face@ is a @StencilFaceDirection@.


glStencilOpValueAMD :: MonadIO m => GLenum -> GLuint -> m ()
glStencilOpValueAMD :: GLenum -> GLenum -> m ()
glStencilOpValueAMD = FunPtr (GLenum -> GLenum -> IO ()) -> GLenum -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLenum -> IO ()) -> GLenum -> GLenum -> m ()
ffienumuintIOV FunPtr (GLenum -> GLenum -> IO ())
glStencilOpValueAMDFunPtr

glStencilOpValueAMDFunPtr :: FunPtr (GLenum -> GLuint -> IO ())
glStencilOpValueAMDFunPtr :: FunPtr (GLenum -> GLenum -> IO ())
glStencilOpValueAMDFunPtr = IO (FunPtr (GLenum -> GLenum -> IO ()))
-> FunPtr (GLenum -> GLenum -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLenum -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glStencilOpValueAMD")

{-# NOINLINE glStencilOpValueAMDFunPtr #-}

pattern $bGL_REPLACE_VALUE_AMD :: a
$mGL_REPLACE_VALUE_AMD :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_REPLACE_VALUE_AMD = 0x874B

pattern $bGL_SET_AMD :: a
$mGL_SET_AMD :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SET_AMD = 0x874A

pattern $bGL_STENCIL_BACK_OP_VALUE_AMD :: a
$mGL_STENCIL_BACK_OP_VALUE_AMD :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_STENCIL_BACK_OP_VALUE_AMD = 0x874D

pattern $bGL_STENCIL_OP_VALUE_AMD :: a
$mGL_STENCIL_OP_VALUE_AMD :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_STENCIL_OP_VALUE_AMD = 0x874C