-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.NV.PointSprite (
  -- * Extension Support
    gl_NV_point_sprite

  -- * GL_NV_point_sprite
  , glPointParameteriNV
  , glPointParameterivNV
  , pattern GL_COORD_REPLACE_NV
  , pattern GL_POINT_SPRITE_NV
  , pattern GL_POINT_SPRITE_R_MODE_NV
) 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/NV/point_sprite.txt GL_NV_point_sprite> extension is available.

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

-- | Usage: @'glPointParameteriNV' pname param@
--
-- The parameter @pname@ is a @PointParameterNameARB@.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glPointParameteri'.


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

glPointParameteriNVFunPtr :: FunPtr (GLenum -> GLint -> IO ())
glPointParameteriNVFunPtr :: FunPtr (GLenum -> GLint -> IO ())
glPointParameteriNVFunPtr = 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 "glPointParameteriNV")

{-# NOINLINE glPointParameteriNVFunPtr #-}

-- | Usage: @'glPointParameterivNV' pname params@
--
-- The parameter @pname@ is a @PointParameterNameARB@.
--
-- The length of @params@ should be @COMPSIZE(pname)@.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glPointParameteriv'.


glPointParameterivNV :: MonadIO m => GLenum -> Ptr GLint -> m ()
glPointParameterivNV :: GLenum -> Ptr GLint -> m ()
glPointParameterivNV = 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 ())
glPointParameterivNVFunPtr

glPointParameterivNVFunPtr :: FunPtr (GLenum -> Ptr GLint -> IO ())
glPointParameterivNVFunPtr :: FunPtr (GLenum -> Ptr GLint -> IO ())
glPointParameterivNVFunPtr = 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 "glPointParameterivNV")

{-# NOINLINE glPointParameterivNVFunPtr #-}

pattern $bGL_COORD_REPLACE_NV :: a
$mGL_COORD_REPLACE_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COORD_REPLACE_NV = 0x8862

pattern $bGL_POINT_SPRITE_NV :: a
$mGL_POINT_SPRITE_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POINT_SPRITE_NV = 0x8861

pattern $bGL_POINT_SPRITE_R_MODE_NV :: a
$mGL_POINT_SPRITE_R_MODE_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POINT_SPRITE_R_MODE_NV = 0x8863