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

  -- * GL_EXT_stencil_two_side
  , glActiveStencilFaceEXT
  , pattern GL_ACTIVE_STENCIL_FACE_EXT
  , pattern GL_STENCIL_TEST_TWO_SIDE_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.Types
import System.IO.Unsafe

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

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

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


glActiveStencilFaceEXT :: MonadIO m => GLenum -> m ()
glActiveStencilFaceEXT :: GLenum -> m ()
glActiveStencilFaceEXT = FunPtr (GLenum -> IO ()) -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> IO ()) -> GLenum -> m ()
ffienumIOV FunPtr (GLenum -> IO ())
glActiveStencilFaceEXTFunPtr

glActiveStencilFaceEXTFunPtr :: FunPtr (GLenum -> IO ())
glActiveStencilFaceEXTFunPtr :: FunPtr (GLenum -> IO ())
glActiveStencilFaceEXTFunPtr = 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 "glActiveStencilFaceEXT")

{-# NOINLINE glActiveStencilFaceEXTFunPtr #-}

pattern $bGL_ACTIVE_STENCIL_FACE_EXT :: a
$mGL_ACTIVE_STENCIL_FACE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_ACTIVE_STENCIL_FACE_EXT = 0x8911

pattern $bGL_STENCIL_TEST_TWO_SIDE_EXT :: a
$mGL_STENCIL_TEST_TWO_SIDE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_STENCIL_TEST_TWO_SIDE_EXT = 0x8910