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

  -- * GL_ARB_draw_buffers
  , glDrawBuffersARB
  , pattern GL_DRAW_BUFFER0_ARB
  , pattern GL_DRAW_BUFFER10_ARB
  , pattern GL_DRAW_BUFFER11_ARB
  , pattern GL_DRAW_BUFFER12_ARB
  , pattern GL_DRAW_BUFFER13_ARB
  , pattern GL_DRAW_BUFFER14_ARB
  , pattern GL_DRAW_BUFFER15_ARB
  , pattern GL_DRAW_BUFFER1_ARB
  , pattern GL_DRAW_BUFFER2_ARB
  , pattern GL_DRAW_BUFFER3_ARB
  , pattern GL_DRAW_BUFFER4_ARB
  , pattern GL_DRAW_BUFFER5_ARB
  , pattern GL_DRAW_BUFFER6_ARB
  , pattern GL_DRAW_BUFFER7_ARB
  , pattern GL_DRAW_BUFFER8_ARB
  , pattern GL_DRAW_BUFFER9_ARB
  , pattern GL_MAX_DRAW_BUFFERS_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/draw_buffers.txt GL_ARB_draw_buffers> extension is available.

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

-- | Usage: @'glDrawBuffersARB' n bufs@
--
-- The parameter @bufs@ is a @DrawBufferModeATI@.
--
-- The length of @bufs@ should be @n@.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glDrawBuffers'.


glDrawBuffersARB :: MonadIO m => GLsizei -> Ptr GLenum -> m ()
glDrawBuffersARB :: GLsizei -> Ptr GLenum -> m ()
glDrawBuffersARB = FunPtr (GLsizei -> Ptr GLenum -> IO ())
-> GLsizei -> Ptr GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLsizei -> Ptr GLenum -> IO ())
-> GLsizei -> Ptr GLenum -> m ()
ffisizeiPtrenumIOV FunPtr (GLsizei -> Ptr GLenum -> IO ())
glDrawBuffersARBFunPtr

glDrawBuffersARBFunPtr :: FunPtr (GLsizei -> Ptr GLenum -> IO ())
glDrawBuffersARBFunPtr :: FunPtr (GLsizei -> Ptr GLenum -> IO ())
glDrawBuffersARBFunPtr = IO (FunPtr (GLsizei -> Ptr GLenum -> IO ()))
-> FunPtr (GLsizei -> Ptr GLenum -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLsizei -> Ptr GLenum -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glDrawBuffersARB")

{-# NOINLINE glDrawBuffersARBFunPtr #-}

pattern $bGL_DRAW_BUFFER0_ARB :: a
$mGL_DRAW_BUFFER0_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER0_ARB = 0x8825

pattern $bGL_DRAW_BUFFER10_ARB :: a
$mGL_DRAW_BUFFER10_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER10_ARB = 0x882F

pattern $bGL_DRAW_BUFFER11_ARB :: a
$mGL_DRAW_BUFFER11_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER11_ARB = 0x8830

pattern $bGL_DRAW_BUFFER12_ARB :: a
$mGL_DRAW_BUFFER12_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER12_ARB = 0x8831

pattern $bGL_DRAW_BUFFER13_ARB :: a
$mGL_DRAW_BUFFER13_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER13_ARB = 0x8832

pattern $bGL_DRAW_BUFFER14_ARB :: a
$mGL_DRAW_BUFFER14_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER14_ARB = 0x8833

pattern $bGL_DRAW_BUFFER15_ARB :: a
$mGL_DRAW_BUFFER15_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER15_ARB = 0x8834

pattern $bGL_DRAW_BUFFER1_ARB :: a
$mGL_DRAW_BUFFER1_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER1_ARB = 0x8826

pattern $bGL_DRAW_BUFFER2_ARB :: a
$mGL_DRAW_BUFFER2_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER2_ARB = 0x8827

pattern $bGL_DRAW_BUFFER3_ARB :: a
$mGL_DRAW_BUFFER3_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER3_ARB = 0x8828

pattern $bGL_DRAW_BUFFER4_ARB :: a
$mGL_DRAW_BUFFER4_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER4_ARB = 0x8829

pattern $bGL_DRAW_BUFFER5_ARB :: a
$mGL_DRAW_BUFFER5_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER5_ARB = 0x882A

pattern $bGL_DRAW_BUFFER6_ARB :: a
$mGL_DRAW_BUFFER6_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER6_ARB = 0x882B

pattern $bGL_DRAW_BUFFER7_ARB :: a
$mGL_DRAW_BUFFER7_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER7_ARB = 0x882C

pattern $bGL_DRAW_BUFFER8_ARB :: a
$mGL_DRAW_BUFFER8_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER8_ARB = 0x882D

pattern $bGL_DRAW_BUFFER9_ARB :: a
$mGL_DRAW_BUFFER9_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER9_ARB = 0x882E

pattern $bGL_MAX_DRAW_BUFFERS_ARB :: a
$mGL_MAX_DRAW_BUFFERS_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_DRAW_BUFFERS_ARB = 0x8824