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

  -- * GL_EXT_cull_vertex
  , glCullParameterdvEXT
  , glCullParameterfvEXT
  , pattern GL_CULL_VERTEX_EXT
  , pattern GL_CULL_VERTEX_EYE_POSITION_EXT
  , pattern GL_CULL_VERTEX_OBJECT_POSITION_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/cull_vertex.txt GL_EXT_cull_vertex> extension is available.

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

-- | Usage: @'glCullParameterdvEXT' pname params@
--
-- The parameter @pname@ is a @CullParameterEXT@.
--
-- The length of @params@ should be @4@.


glCullParameterdvEXT :: MonadIO m => GLenum -> Ptr GLdouble -> m ()
glCullParameterdvEXT :: GLenum -> Ptr GLdouble -> m ()
glCullParameterdvEXT = FunPtr (GLenum -> Ptr GLdouble -> IO ())
-> GLenum -> Ptr GLdouble -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> Ptr GLdouble -> IO ())
-> GLenum -> Ptr GLdouble -> m ()
ffienumPtrdoubleIOV FunPtr (GLenum -> Ptr GLdouble -> IO ())
glCullParameterdvEXTFunPtr

glCullParameterdvEXTFunPtr :: FunPtr (GLenum -> Ptr GLdouble -> IO ())
glCullParameterdvEXTFunPtr :: FunPtr (GLenum -> Ptr GLdouble -> IO ())
glCullParameterdvEXTFunPtr = IO (FunPtr (GLenum -> Ptr GLdouble -> IO ()))
-> FunPtr (GLenum -> Ptr GLdouble -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> Ptr GLdouble -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glCullParameterdvEXT")

{-# NOINLINE glCullParameterdvEXTFunPtr #-}

-- | Usage: @'glCullParameterfvEXT' pname params@
--
-- The parameter @pname@ is a @CullParameterEXT@.
--
-- The length of @params@ should be @4@.


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

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

{-# NOINLINE glCullParameterfvEXTFunPtr #-}

pattern $bGL_CULL_VERTEX_EXT :: a
$mGL_CULL_VERTEX_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CULL_VERTEX_EXT = 0x81AA

pattern $bGL_CULL_VERTEX_EYE_POSITION_EXT :: a
$mGL_CULL_VERTEX_EYE_POSITION_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CULL_VERTEX_EYE_POSITION_EXT = 0x81AB

pattern $bGL_CULL_VERTEX_OBJECT_POSITION_EXT :: a
$mGL_CULL_VERTEX_OBJECT_POSITION_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CULL_VERTEX_OBJECT_POSITION_EXT = 0x81AC