-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.EXT.PointParameters (
  -- * Extension Support
    gl_EXT_point_parameters

  -- * GL_EXT_point_parameters
  , glPointParameterfEXT
  , glPointParameterfvEXT
  , pattern GL_DISTANCE_ATTENUATION_EXT
  , pattern GL_POINT_FADE_THRESHOLD_SIZE_EXT
  , pattern GL_POINT_SIZE_MAX_EXT
  , pattern GL_POINT_SIZE_MIN_EXT
) 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/EXT/point_parameters.txt GL_EXT_point_parameters> extension is available.

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

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


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

glPointParameterfEXTFunPtr :: FunPtr (GLenum -> GLfloat -> IO ())
glPointParameterfEXTFunPtr :: FunPtr (GLenum -> GLfloat -> IO ())
glPointParameterfEXTFunPtr = 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 "glPointParameterfEXT")

{-# NOINLINE glPointParameterfEXTFunPtr #-}

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


glPointParameterfvEXT :: MonadIO m => GLenum -> Ptr GLfloat -> m ()
glPointParameterfvEXT :: GLenum -> Ptr GLfloat -> m ()
glPointParameterfvEXT = 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 ())
glPointParameterfvEXTFunPtr

glPointParameterfvEXTFunPtr :: FunPtr (GLenum -> Ptr GLfloat -> IO ())
glPointParameterfvEXTFunPtr :: FunPtr (GLenum -> Ptr GLfloat -> IO ())
glPointParameterfvEXTFunPtr = 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 "glPointParameterfvEXT")

{-# NOINLINE glPointParameterfvEXTFunPtr #-}

pattern $bGL_DISTANCE_ATTENUATION_EXT :: a
$mGL_DISTANCE_ATTENUATION_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DISTANCE_ATTENUATION_EXT = 0x8129

pattern $bGL_POINT_FADE_THRESHOLD_SIZE_EXT :: a
$mGL_POINT_FADE_THRESHOLD_SIZE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128

pattern $bGL_POINT_SIZE_MAX_EXT :: a
$mGL_POINT_SIZE_MAX_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POINT_SIZE_MAX_EXT = 0x8127

pattern $bGL_POINT_SIZE_MIN_EXT :: a
$mGL_POINT_SIZE_MIN_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POINT_SIZE_MIN_EXT = 0x8126