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

  -- * GL_SGIX_list_priority
  , glGetListParameterfvSGIX
  , glGetListParameterivSGIX
  , glListParameterfSGIX
  , glListParameterfvSGIX
  , glListParameteriSGIX
  , glListParameterivSGIX
  , pattern GL_LIST_PRIORITY_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 <https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/specs/SGIX/list_priority.txt GL_SGIX_list_priority> extension is available.

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

-- | Usage: @'glGetListParameterfvSGIX' list pname params@
--
-- The parameter @list@ is a @List@.
--
-- The parameter @pname@ is a @ListParameterName@, one of: 'Graphics.GL.Ext.SGIX.ListPriority.GL_LIST_PRIORITY_SGIX'.
--
-- The parameter @params@ is a @CheckedFloat32@.
--
-- The length of @params@ should be @COMPSIZE(pname)@.


glGetListParameterfvSGIX :: MonadIO m => GLuint -> GLenum -> Ptr GLfloat -> m ()
glGetListParameterfvSGIX :: GLuint -> GLuint -> Ptr GLfloat -> m ()
glGetListParameterfvSGIX = FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ())
-> GLuint -> GLuint -> Ptr GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ())
-> GLuint -> GLuint -> Ptr GLfloat -> m ()
ffiuintenumPtrfloatIOV FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ())
glGetListParameterfvSGIXFunPtr

glGetListParameterfvSGIXFunPtr :: FunPtr (GLuint -> GLenum -> Ptr GLfloat -> IO ())
glGetListParameterfvSGIXFunPtr :: FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ())
glGetListParameterfvSGIXFunPtr = IO (FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ()))
-> FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetListParameterfvSGIX")

{-# NOINLINE glGetListParameterfvSGIXFunPtr #-}

-- | Usage: @'glGetListParameterivSGIX' list pname params@
--
-- The parameter @list@ is a @List@.
--
-- The parameter @pname@ is a @ListParameterName@, one of: 'Graphics.GL.Ext.SGIX.ListPriority.GL_LIST_PRIORITY_SGIX'.
--
-- The parameter @params@ is a @CheckedInt32@.
--
-- The length of @params@ should be @COMPSIZE(pname)@.


glGetListParameterivSGIX :: MonadIO m => GLuint -> GLenum -> Ptr GLint -> m ()
glGetListParameterivSGIX :: GLuint -> GLuint -> Ptr GLint -> m ()
glGetListParameterivSGIX = FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ())
-> GLuint -> GLuint -> Ptr GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ())
-> GLuint -> GLuint -> Ptr GLint -> m ()
ffiuintenumPtrintIOV FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ())
glGetListParameterivSGIXFunPtr

glGetListParameterivSGIXFunPtr :: FunPtr (GLuint -> GLenum -> Ptr GLint -> IO ())
glGetListParameterivSGIXFunPtr :: FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ())
glGetListParameterivSGIXFunPtr = IO (FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ()))
-> FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetListParameterivSGIX")

{-# NOINLINE glGetListParameterivSGIXFunPtr #-}

-- | Usage: @'glListParameterfSGIX' list pname param@
--
-- The parameter @list@ is a @List@.
--
-- The parameter @pname@ is a @ListParameterName@, one of: 'Graphics.GL.Ext.SGIX.ListPriority.GL_LIST_PRIORITY_SGIX'.
--
-- The parameter @param@ is a @CheckedFloat32@.


glListParameterfSGIX :: MonadIO m => GLuint -> GLenum -> GLfloat -> m ()
glListParameterfSGIX :: GLuint -> GLuint -> GLfloat -> m ()
glListParameterfSGIX = FunPtr (GLuint -> GLuint -> GLfloat -> IO ())
-> GLuint -> GLuint -> GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> GLfloat -> IO ())
-> GLuint -> GLuint -> GLfloat -> m ()
ffiuintenumfloatIOV FunPtr (GLuint -> GLuint -> GLfloat -> IO ())
glListParameterfSGIXFunPtr

glListParameterfSGIXFunPtr :: FunPtr (GLuint -> GLenum -> GLfloat -> IO ())
glListParameterfSGIXFunPtr :: FunPtr (GLuint -> GLuint -> GLfloat -> IO ())
glListParameterfSGIXFunPtr = IO (FunPtr (GLuint -> GLuint -> GLfloat -> IO ()))
-> FunPtr (GLuint -> GLuint -> GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLuint -> GLfloat -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glListParameterfSGIX")

{-# NOINLINE glListParameterfSGIXFunPtr #-}

-- | Usage: @'glListParameterfvSGIX' list pname params@
--
-- The parameter @list@ is a @List@.
--
-- The parameter @pname@ is a @ListParameterName@, one of: 'Graphics.GL.Ext.SGIX.ListPriority.GL_LIST_PRIORITY_SGIX'.
--
-- The parameter @params@ is a @CheckedFloat32@.
--
-- The length of @params@ should be @COMPSIZE(pname)@.


glListParameterfvSGIX :: MonadIO m => GLuint -> GLenum -> Ptr GLfloat -> m ()
glListParameterfvSGIX :: GLuint -> GLuint -> Ptr GLfloat -> m ()
glListParameterfvSGIX = FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ())
-> GLuint -> GLuint -> Ptr GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ())
-> GLuint -> GLuint -> Ptr GLfloat -> m ()
ffiuintenumPtrfloatIOV FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ())
glListParameterfvSGIXFunPtr

glListParameterfvSGIXFunPtr :: FunPtr (GLuint -> GLenum -> Ptr GLfloat -> IO ())
glListParameterfvSGIXFunPtr :: FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ())
glListParameterfvSGIXFunPtr = IO (FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ()))
-> FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLuint -> Ptr GLfloat -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glListParameterfvSGIX")

{-# NOINLINE glListParameterfvSGIXFunPtr #-}

-- | Usage: @'glListParameteriSGIX' list pname param@
--
-- The parameter @list@ is a @List@.
--
-- The parameter @pname@ is a @ListParameterName@, one of: 'Graphics.GL.Ext.SGIX.ListPriority.GL_LIST_PRIORITY_SGIX'.
--
-- The parameter @param@ is a @CheckedInt32@.


glListParameteriSGIX :: MonadIO m => GLuint -> GLenum -> GLint -> m ()
glListParameteriSGIX :: GLuint -> GLuint -> GLint -> m ()
glListParameteriSGIX = FunPtr (GLuint -> GLuint -> GLint -> IO ())
-> GLuint -> GLuint -> GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> GLint -> IO ())
-> GLuint -> GLuint -> GLint -> m ()
ffiuintenumintIOV FunPtr (GLuint -> GLuint -> GLint -> IO ())
glListParameteriSGIXFunPtr

glListParameteriSGIXFunPtr :: FunPtr (GLuint -> GLenum -> GLint -> IO ())
glListParameteriSGIXFunPtr :: FunPtr (GLuint -> GLuint -> GLint -> IO ())
glListParameteriSGIXFunPtr = IO (FunPtr (GLuint -> GLuint -> GLint -> IO ()))
-> FunPtr (GLuint -> GLuint -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLuint -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glListParameteriSGIX")

{-# NOINLINE glListParameteriSGIXFunPtr #-}

-- | Usage: @'glListParameterivSGIX' list pname params@
--
-- The parameter @list@ is a @List@.
--
-- The parameter @pname@ is a @ListParameterName@, one of: 'Graphics.GL.Ext.SGIX.ListPriority.GL_LIST_PRIORITY_SGIX'.
--
-- The parameter @params@ is a @CheckedInt32@.
--
-- The length of @params@ should be @COMPSIZE(pname)@.


glListParameterivSGIX :: MonadIO m => GLuint -> GLenum -> Ptr GLint -> m ()
glListParameterivSGIX :: GLuint -> GLuint -> Ptr GLint -> m ()
glListParameterivSGIX = FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ())
-> GLuint -> GLuint -> Ptr GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ())
-> GLuint -> GLuint -> Ptr GLint -> m ()
ffiuintenumPtrintIOV FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ())
glListParameterivSGIXFunPtr

glListParameterivSGIXFunPtr :: FunPtr (GLuint -> GLenum -> Ptr GLint -> IO ())
glListParameterivSGIXFunPtr :: FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ())
glListParameterivSGIXFunPtr = IO (FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ()))
-> FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLuint -> Ptr GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glListParameterivSGIX")

{-# NOINLINE glListParameterivSGIXFunPtr #-}

pattern $bGL_LIST_PRIORITY_SGIX :: a
$mGL_LIST_PRIORITY_SGIX :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_LIST_PRIORITY_SGIX = 0x8182