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

  -- * GL_SGIX_sprite
  , glSpriteParameterfSGIX
  , glSpriteParameterfvSGIX
  , glSpriteParameteriSGIX
  , glSpriteParameterivSGIX
  , pattern GL_SPRITE_AXIAL_SGIX
  , pattern GL_SPRITE_AXIS_SGIX
  , pattern GL_SPRITE_EYE_ALIGNED_SGIX
  , pattern GL_SPRITE_MODE_SGIX
  , pattern GL_SPRITE_OBJECT_ALIGNED_SGIX
  , pattern GL_SPRITE_SGIX
  , pattern GL_SPRITE_TRANSLATION_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/sprite.txt GL_SGIX_sprite> extension is available.

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

-- | Usage: @'glSpriteParameterfSGIX' pname param@
--
-- The parameter @pname@ is a @SpriteParameterNameSGIX@.
--
-- The parameter @param@ is a @CheckedFloat32@.


glSpriteParameterfSGIX :: MonadIO m => GLenum -> GLfloat -> m ()
glSpriteParameterfSGIX :: GLenum -> GLfloat -> m ()
glSpriteParameterfSGIX = FunPtr (GLenum -> GLfloat -> IO ()) -> GLenum -> GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLfloat -> IO ()) -> GLenum -> GLfloat -> m ()
ffienumfloatIOV FunPtr (GLenum -> GLfloat -> IO ())
glSpriteParameterfSGIXFunPtr

glSpriteParameterfSGIXFunPtr :: FunPtr (GLenum -> GLfloat -> IO ())
glSpriteParameterfSGIXFunPtr :: FunPtr (GLenum -> GLfloat -> IO ())
glSpriteParameterfSGIXFunPtr = IO (FunPtr (GLenum -> GLfloat -> IO ()))
-> FunPtr (GLenum -> GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLfloat -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glSpriteParameterfSGIX")

{-# NOINLINE glSpriteParameterfSGIXFunPtr #-}

-- | Usage: @'glSpriteParameterfvSGIX' pname params@
--
-- The parameter @pname@ is a @SpriteParameterNameSGIX@.
--
-- The parameter @params@ is a @CheckedFloat32@.
--
-- The length of @params@ should be @COMPSIZE(pname)@.


glSpriteParameterfvSGIX :: MonadIO m => GLenum -> Ptr GLfloat -> m ()
glSpriteParameterfvSGIX :: GLenum -> Ptr GLfloat -> m ()
glSpriteParameterfvSGIX = FunPtr (GLenum -> Ptr GLfloat -> IO ())
-> GLenum -> Ptr GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> Ptr GLfloat -> IO ())
-> GLenum -> Ptr GLfloat -> m ()
ffienumPtrfloatIOV FunPtr (GLenum -> Ptr GLfloat -> IO ())
glSpriteParameterfvSGIXFunPtr

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

{-# NOINLINE glSpriteParameterfvSGIXFunPtr #-}

-- | Usage: @'glSpriteParameteriSGIX' pname param@
--
-- The parameter @pname@ is a @SpriteParameterNameSGIX@.
--
-- The parameter @param@ is a @CheckedInt32@.


glSpriteParameteriSGIX :: MonadIO m => GLenum -> GLint -> m ()
glSpriteParameteriSGIX :: GLenum -> GLint -> m ()
glSpriteParameteriSGIX = FunPtr (GLenum -> GLint -> IO ()) -> GLenum -> GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLint -> IO ()) -> GLenum -> GLint -> m ()
ffienumintIOV FunPtr (GLenum -> GLint -> IO ())
glSpriteParameteriSGIXFunPtr

glSpriteParameteriSGIXFunPtr :: FunPtr (GLenum -> GLint -> IO ())
glSpriteParameteriSGIXFunPtr :: FunPtr (GLenum -> GLint -> IO ())
glSpriteParameteriSGIXFunPtr = IO (FunPtr (GLenum -> GLint -> IO ()))
-> FunPtr (GLenum -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glSpriteParameteriSGIX")

{-# NOINLINE glSpriteParameteriSGIXFunPtr #-}

-- | Usage: @'glSpriteParameterivSGIX' pname params@
--
-- The parameter @pname@ is a @SpriteParameterNameSGIX@.
--
-- The parameter @params@ is a @CheckedInt32@.
--
-- The length of @params@ should be @COMPSIZE(pname)@.


glSpriteParameterivSGIX :: MonadIO m => GLenum -> Ptr GLint -> m ()
glSpriteParameterivSGIX :: GLenum -> Ptr GLint -> m ()
glSpriteParameterivSGIX = FunPtr (GLenum -> Ptr GLint -> IO ())
-> GLenum -> Ptr GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> Ptr GLint -> IO ())
-> GLenum -> Ptr GLint -> m ()
ffienumPtrintIOV FunPtr (GLenum -> Ptr GLint -> IO ())
glSpriteParameterivSGIXFunPtr

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

{-# NOINLINE glSpriteParameterivSGIXFunPtr #-}

pattern $bGL_SPRITE_AXIAL_SGIX :: a
$mGL_SPRITE_AXIAL_SGIX :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SPRITE_AXIAL_SGIX = 0x814C

pattern $bGL_SPRITE_AXIS_SGIX :: a
$mGL_SPRITE_AXIS_SGIX :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SPRITE_AXIS_SGIX = 0x814A

pattern $bGL_SPRITE_EYE_ALIGNED_SGIX :: a
$mGL_SPRITE_EYE_ALIGNED_SGIX :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SPRITE_EYE_ALIGNED_SGIX = 0x814E

pattern $bGL_SPRITE_MODE_SGIX :: a
$mGL_SPRITE_MODE_SGIX :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SPRITE_MODE_SGIX = 0x8149

pattern $bGL_SPRITE_OBJECT_ALIGNED_SGIX :: a
$mGL_SPRITE_OBJECT_ALIGNED_SGIX :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SPRITE_OBJECT_ALIGNED_SGIX = 0x814D

pattern $bGL_SPRITE_SGIX :: a
$mGL_SPRITE_SGIX :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SPRITE_SGIX = 0x8148

pattern $bGL_SPRITE_TRANSLATION_SGIX :: a
$mGL_SPRITE_TRANSLATION_SGIX :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SPRITE_TRANSLATION_SGIX = 0x814B