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

  -- * GL_EXT_index_func
  , glIndexFuncEXT
  , pattern GL_INDEX_TEST_EXT
  , pattern GL_INDEX_TEST_FUNC_EXT
  , pattern GL_INDEX_TEST_REF_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/index_func.txt GL_EXT_index_func> extension is available.

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

-- | Usage: @'glIndexFuncEXT' func ref@
--
-- The parameter @func@ is a @IndexFunctionEXT@.
--
-- The parameter @ref@ is a @ClampedFloat32@.


glIndexFuncEXT :: MonadIO m => GLenum -> GLclampf -> m ()
glIndexFuncEXT :: GLenum -> GLclampf -> m ()
glIndexFuncEXT = FunPtr (GLenum -> GLclampf -> IO ()) -> GLenum -> GLclampf -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLclampf -> IO ()) -> GLenum -> GLclampf -> m ()
ffienumclampfIOV FunPtr (GLenum -> GLclampf -> IO ())
glIndexFuncEXTFunPtr

glIndexFuncEXTFunPtr :: FunPtr (GLenum -> GLclampf -> IO ())
glIndexFuncEXTFunPtr :: FunPtr (GLenum -> GLclampf -> IO ())
glIndexFuncEXTFunPtr = IO (FunPtr (GLenum -> GLclampf -> IO ()))
-> FunPtr (GLenum -> GLclampf -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLclampf -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glIndexFuncEXT")

{-# NOINLINE glIndexFuncEXTFunPtr #-}

pattern $bGL_INDEX_TEST_EXT :: a
$mGL_INDEX_TEST_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_INDEX_TEST_EXT = 0x81B5

pattern $bGL_INDEX_TEST_FUNC_EXT :: a
$mGL_INDEX_TEST_FUNC_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_INDEX_TEST_FUNC_EXT = 0x81B6

pattern $bGL_INDEX_TEST_REF_EXT :: a
$mGL_INDEX_TEST_REF_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_INDEX_TEST_REF_EXT = 0x81B7