-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.ARB.IndirectParameters (
  -- * Extension Support
    gl_ARB_indirect_parameters

  -- * GL_ARB_indirect_parameters
  , glMultiDrawArraysIndirectCountARB
  , glMultiDrawElementsIndirectCountARB
  , pattern GL_PARAMETER_BUFFER_ARB
  , pattern GL_PARAMETER_BUFFER_BINDING_ARB
) 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/ARB/indirect_parameters.txt GL_ARB_indirect_parameters> extension is available.

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

-- | Usage: @'glMultiDrawArraysIndirectCountARB' mode indirect drawcount maxdrawcount stride@


glMultiDrawArraysIndirectCountARB :: MonadIO m => GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> m ()
glMultiDrawArraysIndirectCountARB :: GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> m ()
glMultiDrawArraysIndirectCountARB = FunPtr
  (GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ())
-> GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ())
-> GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> m ()
ffienumintptrintptrsizeisizeiIOV FunPtr
  (GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ())
glMultiDrawArraysIndirectCountARBFunPtr

glMultiDrawArraysIndirectCountARBFunPtr :: FunPtr (GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ())
glMultiDrawArraysIndirectCountARBFunPtr :: FunPtr
  (GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ())
glMultiDrawArraysIndirectCountARBFunPtr = IO
  (FunPtr
     (GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ()))
-> FunPtr
     (GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glMultiDrawArraysIndirectCountARB")

{-# NOINLINE glMultiDrawArraysIndirectCountARBFunPtr #-}

-- | Usage: @'glMultiDrawElementsIndirectCountARB' mode type indirect drawcount maxdrawcount stride@


glMultiDrawElementsIndirectCountARB :: MonadIO m => GLenum -> GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> m ()
glMultiDrawElementsIndirectCountARB :: GLenum
-> GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> m ()
glMultiDrawElementsIndirectCountARB = FunPtr
  (GLenum
   -> GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ())
-> GLenum
-> GLenum
-> GLintptr
-> GLintptr
-> GLsizei
-> GLsizei
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLenum
   -> GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ())
-> GLenum
-> GLenum
-> GLintptr
-> GLintptr
-> GLsizei
-> GLsizei
-> m ()
ffienumenumintptrintptrsizeisizeiIOV FunPtr
  (GLenum
   -> GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ())
glMultiDrawElementsIndirectCountARBFunPtr

glMultiDrawElementsIndirectCountARBFunPtr :: FunPtr (GLenum -> GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ())
glMultiDrawElementsIndirectCountARBFunPtr :: FunPtr
  (GLenum
   -> GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ())
glMultiDrawElementsIndirectCountARBFunPtr = IO
  (FunPtr
     (GLenum
      -> GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ()))
-> FunPtr
     (GLenum
      -> GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum
         -> GLenum -> GLintptr -> GLintptr -> GLsizei -> GLsizei -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glMultiDrawElementsIndirectCountARB")

{-# NOINLINE glMultiDrawElementsIndirectCountARBFunPtr #-}

pattern $bGL_PARAMETER_BUFFER_ARB :: a
$mGL_PARAMETER_BUFFER_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PARAMETER_BUFFER_ARB = 0x80EE

pattern $bGL_PARAMETER_BUFFER_BINDING_ARB :: a
$mGL_PARAMETER_BUFFER_BINDING_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PARAMETER_BUFFER_BINDING_ARB = 0x80EF