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

  -- * GL_EXT_depth_bounds_test
  , glDepthBoundsEXT
  , pattern GL_DEPTH_BOUNDS_EXT
  , pattern GL_DEPTH_BOUNDS_TEST_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/depth_bounds_test.txt GL_EXT_depth_bounds_test> extension is available.

gl_EXT_depth_bounds_test :: Bool
gl_EXT_depth_bounds_test :: Bool
gl_EXT_depth_bounds_test = String -> Set String -> Bool
forall a. Ord a => a -> Set a -> Bool
member String
"GL_EXT_depth_bounds_test" Set String
extensions
{-# NOINLINE gl_EXT_depth_bounds_test #-}

-- | Usage: @'glDepthBoundsEXT' zmin zmax@
--
-- The parameter @zmin@ is a @ClampedFloat64@.
--
-- The parameter @zmax@ is a @ClampedFloat64@.


glDepthBoundsEXT :: MonadIO m => GLclampd -> GLclampd -> m ()
glDepthBoundsEXT :: forall (m :: * -> *). MonadIO m => GLclampd -> GLclampd -> m ()
glDepthBoundsEXT = FunPtr (GLclampd -> GLclampd -> IO ())
-> GLclampd -> GLclampd -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLclampd -> GLclampd -> IO ())
-> GLclampd -> GLclampd -> m ()
fficlampdclampdIOV FunPtr (GLclampd -> GLclampd -> IO ())
glDepthBoundsEXTFunPtr

glDepthBoundsEXTFunPtr :: FunPtr (GLclampd -> GLclampd -> IO ())
glDepthBoundsEXTFunPtr :: FunPtr (GLclampd -> GLclampd -> IO ())
glDepthBoundsEXTFunPtr = IO (FunPtr (GLclampd -> GLclampd -> IO ()))
-> FunPtr (GLclampd -> GLclampd -> IO ())
forall a. IO a -> a
unsafePerformIO (String -> IO (FunPtr (GLclampd -> GLclampd -> IO ()))
forall a. String -> IO (FunPtr a)
getProcAddress String
"glDepthBoundsEXT")

{-# NOINLINE glDepthBoundsEXTFunPtr #-}

pattern GL_DEPTH_BOUNDS_EXT  :: (Eq a, Num a) => a

pattern $mGL_DEPTH_BOUNDS_EXT :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_DEPTH_BOUNDS_EXT :: forall a. (Eq a, Num a) => a
GL_DEPTH_BOUNDS_EXT = 0x8891

pattern GL_DEPTH_BOUNDS_TEST_EXT  :: (Eq a, Num a) => a

pattern $mGL_DEPTH_BOUNDS_TEST_EXT :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_DEPTH_BOUNDS_TEST_EXT :: forall a. (Eq a, Num a) => a
GL_DEPTH_BOUNDS_TEST_EXT = 0x8890