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

  -- * GL_EXT_draw_buffers
  , glDrawBuffersEXT
  , pattern GL_COLOR_ATTACHMENT0_EXT
  , pattern GL_COLOR_ATTACHMENT10_EXT
  , pattern GL_COLOR_ATTACHMENT11_EXT
  , pattern GL_COLOR_ATTACHMENT12_EXT
  , pattern GL_COLOR_ATTACHMENT13_EXT
  , pattern GL_COLOR_ATTACHMENT14_EXT
  , pattern GL_COLOR_ATTACHMENT15_EXT
  , pattern GL_COLOR_ATTACHMENT1_EXT
  , pattern GL_COLOR_ATTACHMENT2_EXT
  , pattern GL_COLOR_ATTACHMENT3_EXT
  , pattern GL_COLOR_ATTACHMENT4_EXT
  , pattern GL_COLOR_ATTACHMENT5_EXT
  , pattern GL_COLOR_ATTACHMENT6_EXT
  , pattern GL_COLOR_ATTACHMENT7_EXT
  , pattern GL_COLOR_ATTACHMENT8_EXT
  , pattern GL_COLOR_ATTACHMENT9_EXT
  , pattern GL_DRAW_BUFFER0_EXT
  , pattern GL_DRAW_BUFFER10_EXT
  , pattern GL_DRAW_BUFFER11_EXT
  , pattern GL_DRAW_BUFFER12_EXT
  , pattern GL_DRAW_BUFFER13_EXT
  , pattern GL_DRAW_BUFFER14_EXT
  , pattern GL_DRAW_BUFFER15_EXT
  , pattern GL_DRAW_BUFFER1_EXT
  , pattern GL_DRAW_BUFFER2_EXT
  , pattern GL_DRAW_BUFFER3_EXT
  , pattern GL_DRAW_BUFFER4_EXT
  , pattern GL_DRAW_BUFFER5_EXT
  , pattern GL_DRAW_BUFFER6_EXT
  , pattern GL_DRAW_BUFFER7_EXT
  , pattern GL_DRAW_BUFFER8_EXT
  , pattern GL_DRAW_BUFFER9_EXT
  , pattern GL_MAX_COLOR_ATTACHMENTS_EXT
  , pattern GL_MAX_DRAW_BUFFERS_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.Internal.Shared
import Graphics.GL.Types
import System.IO.Unsafe

-- | Checks that the <https://www.khronos.org/registry/gles/extensions/EXT/EXT_draw_buffers.txt GL_EXT_draw_buffers> extension is available.

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

-- | Usage: @'glDrawBuffersEXT' n bufs@
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glDrawBuffers'.


glDrawBuffersEXT :: MonadIO m => GLsizei -> Ptr GLenum -> m ()
glDrawBuffersEXT :: GLsizei -> Ptr GLenum -> m ()
glDrawBuffersEXT = 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 ())
glDrawBuffersEXTFunPtr

glDrawBuffersEXTFunPtr :: FunPtr (GLsizei -> Ptr GLenum -> IO ())
glDrawBuffersEXTFunPtr :: FunPtr (GLsizei -> Ptr GLenum -> IO ())
glDrawBuffersEXTFunPtr = 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 "glDrawBuffersEXT")

{-# NOINLINE glDrawBuffersEXTFunPtr #-}

pattern $bGL_DRAW_BUFFER0_EXT :: a
$mGL_DRAW_BUFFER0_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER0_EXT = 0x8825

pattern $bGL_DRAW_BUFFER10_EXT :: a
$mGL_DRAW_BUFFER10_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER10_EXT = 0x882F

pattern $bGL_DRAW_BUFFER11_EXT :: a
$mGL_DRAW_BUFFER11_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER11_EXT = 0x8830

pattern $bGL_DRAW_BUFFER12_EXT :: a
$mGL_DRAW_BUFFER12_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER12_EXT = 0x8831

pattern $bGL_DRAW_BUFFER13_EXT :: a
$mGL_DRAW_BUFFER13_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER13_EXT = 0x8832

pattern $bGL_DRAW_BUFFER14_EXT :: a
$mGL_DRAW_BUFFER14_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER14_EXT = 0x8833

pattern $bGL_DRAW_BUFFER15_EXT :: a
$mGL_DRAW_BUFFER15_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER15_EXT = 0x8834

pattern $bGL_DRAW_BUFFER1_EXT :: a
$mGL_DRAW_BUFFER1_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER1_EXT = 0x8826

pattern $bGL_DRAW_BUFFER2_EXT :: a
$mGL_DRAW_BUFFER2_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER2_EXT = 0x8827

pattern $bGL_DRAW_BUFFER3_EXT :: a
$mGL_DRAW_BUFFER3_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER3_EXT = 0x8828

pattern $bGL_DRAW_BUFFER4_EXT :: a
$mGL_DRAW_BUFFER4_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER4_EXT = 0x8829

pattern $bGL_DRAW_BUFFER5_EXT :: a
$mGL_DRAW_BUFFER5_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER5_EXT = 0x882A

pattern $bGL_DRAW_BUFFER6_EXT :: a
$mGL_DRAW_BUFFER6_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER6_EXT = 0x882B

pattern $bGL_DRAW_BUFFER7_EXT :: a
$mGL_DRAW_BUFFER7_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER7_EXT = 0x882C

pattern $bGL_DRAW_BUFFER8_EXT :: a
$mGL_DRAW_BUFFER8_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER8_EXT = 0x882D

pattern $bGL_DRAW_BUFFER9_EXT :: a
$mGL_DRAW_BUFFER9_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER9_EXT = 0x882E

pattern $bGL_MAX_DRAW_BUFFERS_EXT :: a
$mGL_MAX_DRAW_BUFFERS_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_DRAW_BUFFERS_EXT = 0x8824