-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.SGIS.TextureColorMask (
  -- * Extension Support
    gl_SGIS_texture_color_mask

  -- * GL_SGIS_texture_color_mask
  , glTextureColorMaskSGIS
  , pattern GL_TEXTURE_COLOR_WRITEMASK_SGIS
) 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/SGIS/texture_color_mask.txt GL_SGIS_texture_color_mask> extension is available.

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

-- | Usage: @'glTextureColorMaskSGIS' red green blue alpha@
--
-- The parameter @red@ is a @Boolean@, one of: 'Graphics.GL.Internal.Shared.GL_FALSE', 'Graphics.GL.Internal.Shared.GL_TRUE'.
--
-- The parameter @green@ is a @Boolean@, one of: 'Graphics.GL.Internal.Shared.GL_FALSE', 'Graphics.GL.Internal.Shared.GL_TRUE'.
--
-- The parameter @blue@ is a @Boolean@, one of: 'Graphics.GL.Internal.Shared.GL_FALSE', 'Graphics.GL.Internal.Shared.GL_TRUE'.
--
-- The parameter @alpha@ is a @Boolean@, one of: 'Graphics.GL.Internal.Shared.GL_FALSE', 'Graphics.GL.Internal.Shared.GL_TRUE'.


glTextureColorMaskSGIS :: MonadIO m => GLboolean -> GLboolean -> GLboolean -> GLboolean -> m ()
glTextureColorMaskSGIS :: GLboolean -> GLboolean -> GLboolean -> GLboolean -> m ()
glTextureColorMaskSGIS = FunPtr (GLboolean -> GLboolean -> GLboolean -> GLboolean -> IO ())
-> GLboolean -> GLboolean -> GLboolean -> GLboolean -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLboolean -> GLboolean -> GLboolean -> GLboolean -> IO ())
-> GLboolean -> GLboolean -> GLboolean -> GLboolean -> m ()
ffibooleanbooleanbooleanbooleanIOV FunPtr (GLboolean -> GLboolean -> GLboolean -> GLboolean -> IO ())
glTextureColorMaskSGISFunPtr

glTextureColorMaskSGISFunPtr :: FunPtr (GLboolean -> GLboolean -> GLboolean -> GLboolean -> IO ())
glTextureColorMaskSGISFunPtr :: FunPtr (GLboolean -> GLboolean -> GLboolean -> GLboolean -> IO ())
glTextureColorMaskSGISFunPtr = IO
  (FunPtr
     (GLboolean -> GLboolean -> GLboolean -> GLboolean -> IO ()))
-> FunPtr
     (GLboolean -> GLboolean -> GLboolean -> GLboolean -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLboolean -> GLboolean -> GLboolean -> GLboolean -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glTextureColorMaskSGIS")

{-# NOINLINE glTextureColorMaskSGISFunPtr #-}

pattern $bGL_TEXTURE_COLOR_WRITEMASK_SGIS :: a
$mGL_TEXTURE_COLOR_WRITEMASK_SGIS :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_COLOR_WRITEMASK_SGIS = 0x81EF