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

  -- * GL_EXT_primitive_bounding_box
  , glPrimitiveBoundingBoxEXT
  , pattern GL_PRIMITIVE_BOUNDING_BOX_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://www.khronos.org/registry/gles/extensions/EXT/EXT_primitive_bounding_box.txt GL_EXT_primitive_bounding_box> extension is available.

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

-- | Usage: @'glPrimitiveBoundingBoxEXT' minX minY minZ minW maxX maxY maxZ maxW@
--
-- This command is an alias for 'Graphics.GL.Embedded32.glPrimitiveBoundingBox'.


glPrimitiveBoundingBoxEXT :: MonadIO m => GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> m ()
glPrimitiveBoundingBoxEXT :: GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> m ()
glPrimitiveBoundingBoxEXT = FunPtr
  (GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> IO ())
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> IO ())
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> GLfloat
-> m ()
ffifloatfloatfloatfloatfloatfloatfloatfloatIOV FunPtr
  (GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> IO ())
glPrimitiveBoundingBoxEXTFunPtr

glPrimitiveBoundingBoxEXTFunPtr :: FunPtr (GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> IO ())
glPrimitiveBoundingBoxEXTFunPtr :: FunPtr
  (GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> GLfloat
   -> IO ())
glPrimitiveBoundingBoxEXTFunPtr = IO
  (FunPtr
     (GLfloat
      -> GLfloat
      -> GLfloat
      -> GLfloat
      -> GLfloat
      -> GLfloat
      -> GLfloat
      -> GLfloat
      -> IO ()))
-> FunPtr
     (GLfloat
      -> GLfloat
      -> GLfloat
      -> GLfloat
      -> GLfloat
      -> GLfloat
      -> GLfloat
      -> GLfloat
      -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLfloat
         -> GLfloat
         -> GLfloat
         -> GLfloat
         -> GLfloat
         -> GLfloat
         -> GLfloat
         -> GLfloat
         -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glPrimitiveBoundingBoxEXT")

{-# NOINLINE glPrimitiveBoundingBoxEXTFunPtr #-}

pattern $bGL_PRIMITIVE_BOUNDING_BOX_EXT :: a
$mGL_PRIMITIVE_BOUNDING_BOX_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PRIMITIVE_BOUNDING_BOX_EXT = 0x92BE