-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.SGIX.PixelTexture (
  -- * Extension Support
    gl_SGIX_pixel_texture

  -- * GL_SGIX_pixel_texture
  , glPixelTexGenSGIX
  , pattern GL_PIXEL_TEX_GEN_MODE_SGIX
  , pattern GL_PIXEL_TEX_GEN_SGIX
) 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 GL_SGIX_pixel_texture extension is available.

gl_SGIX_pixel_texture :: Bool
gl_SGIX_pixel_texture :: Bool
gl_SGIX_pixel_texture = String -> Set String -> Bool
forall a. Ord a => a -> Set a -> Bool
member String
"GL_SGIX_pixel_texture" Set String
extensions
{-# NOINLINE gl_SGIX_pixel_texture #-}

-- | Usage: @'glPixelTexGenSGIX' mode@
--
-- The parameter @mode@ is a @PixelTexGenModeSGIX@.


glPixelTexGenSGIX :: MonadIO m => GLenum -> m ()
glPixelTexGenSGIX :: forall (m :: * -> *). MonadIO m => GLenum -> m ()
glPixelTexGenSGIX = FunPtr (GLenum -> IO ()) -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> IO ()) -> GLenum -> m ()
ffienumIOV FunPtr (GLenum -> IO ())
glPixelTexGenSGIXFunPtr

glPixelTexGenSGIXFunPtr :: FunPtr (GLenum -> IO ())
glPixelTexGenSGIXFunPtr :: FunPtr (GLenum -> IO ())
glPixelTexGenSGIXFunPtr = IO (FunPtr (GLenum -> IO ())) -> FunPtr (GLenum -> IO ())
forall a. IO a -> a
unsafePerformIO (String -> IO (FunPtr (GLenum -> IO ()))
forall a. String -> IO (FunPtr a)
getProcAddress String
"glPixelTexGenSGIX")

{-# NOINLINE glPixelTexGenSGIXFunPtr #-}

pattern GL_PIXEL_TEX_GEN_MODE_SGIX  :: (Eq a, Num a) => a

pattern $mGL_PIXEL_TEX_GEN_MODE_SGIX :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_PIXEL_TEX_GEN_MODE_SGIX :: forall a. (Eq a, Num a) => a
GL_PIXEL_TEX_GEN_MODE_SGIX = 0x832B

pattern GL_PIXEL_TEX_GEN_SGIX  :: (Eq a, Num a) => a

pattern $mGL_PIXEL_TEX_GEN_SGIX :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_PIXEL_TEX_GEN_SGIX :: forall a. (Eq a, Num a) => a
GL_PIXEL_TEX_GEN_SGIX = 0x8139