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

  -- * GL_EXT_index_material
  , glIndexMaterialEXT
  , pattern GL_INDEX_MATERIAL_EXT
  , pattern GL_INDEX_MATERIAL_FACE_EXT
  , pattern GL_INDEX_MATERIAL_PARAMETER_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_material.txt GL_EXT_index_material> extension is available.

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

-- | Usage: @'glIndexMaterialEXT' face mode@
--
-- The parameter @face@ is a @MaterialFace@, one of: 'Graphics.GL.Internal.Shared.GL_BACK', 'Graphics.GL.Internal.Shared.GL_FRONT', 'Graphics.GL.Internal.Shared.GL_FRONT_AND_BACK'.
--
-- The parameter @mode@ is a @IndexMaterialParameterEXT@.


glIndexMaterialEXT :: MonadIO m => GLenum -> GLenum -> m ()
glIndexMaterialEXT :: GLenum -> GLenum -> m ()
glIndexMaterialEXT = FunPtr (GLenum -> GLenum -> IO ()) -> GLenum -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLenum -> IO ()) -> GLenum -> GLenum -> m ()
ffienumenumIOV FunPtr (GLenum -> GLenum -> IO ())
glIndexMaterialEXTFunPtr

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

{-# NOINLINE glIndexMaterialEXTFunPtr #-}

pattern $bGL_INDEX_MATERIAL_EXT :: a
$mGL_INDEX_MATERIAL_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_INDEX_MATERIAL_EXT = 0x81B8

pattern $bGL_INDEX_MATERIAL_FACE_EXT :: a
$mGL_INDEX_MATERIAL_FACE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_INDEX_MATERIAL_FACE_EXT = 0x81BA

pattern $bGL_INDEX_MATERIAL_PARAMETER_EXT :: a
$mGL_INDEX_MATERIAL_PARAMETER_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_INDEX_MATERIAL_PARAMETER_EXT = 0x81B9