-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.SUNX.ConstantData (
  -- * Extension Support
    gl_SUNX_constant_data

  -- * GL_SUNX_constant_data
  , glFinishTextureSUNX
  , pattern GL_TEXTURE_CONSTANT_DATA_SUNX
  , pattern GL_UNPACK_CONSTANT_DATA_SUNX
) where

import Control.Monad.IO.Class
import Data.Set
import Foreign.Ptr
import Graphics.GL.Internal.FFI
import Graphics.GL.Internal.Proc
import System.IO.Unsafe

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

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

-- | Usage: @'glFinishTextureSUNX'@


glFinishTextureSUNX :: MonadIO m => m ()
glFinishTextureSUNX :: m ()
glFinishTextureSUNX = FunPtr (IO ()) -> m ()
forall (m :: * -> *). MonadIO m => FunPtr (IO ()) -> m ()
ffiIOV FunPtr (IO ())
glFinishTextureSUNXFunPtr

glFinishTextureSUNXFunPtr :: FunPtr (IO ())
glFinishTextureSUNXFunPtr :: FunPtr (IO ())
glFinishTextureSUNXFunPtr = IO (FunPtr (IO ())) -> FunPtr (IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glFinishTextureSUNX")

{-# NOINLINE glFinishTextureSUNXFunPtr #-}

pattern $bGL_TEXTURE_CONSTANT_DATA_SUNX :: a
$mGL_TEXTURE_CONSTANT_DATA_SUNX :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_CONSTANT_DATA_SUNX = 0x81D6

pattern $bGL_UNPACK_CONSTANT_DATA_SUNX :: a
$mGL_UNPACK_CONSTANT_DATA_SUNX :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_UNPACK_CONSTANT_DATA_SUNX = 0x81D5