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

  -- * GL_NV_draw_buffers
  , glDrawBuffersNV
  , pattern GL_COLOR_ATTACHMENT0_NV
  , pattern GL_COLOR_ATTACHMENT10_NV
  , pattern GL_COLOR_ATTACHMENT11_NV
  , pattern GL_COLOR_ATTACHMENT12_NV
  , pattern GL_COLOR_ATTACHMENT13_NV
  , pattern GL_COLOR_ATTACHMENT14_NV
  , pattern GL_COLOR_ATTACHMENT15_NV
  , pattern GL_COLOR_ATTACHMENT1_NV
  , pattern GL_COLOR_ATTACHMENT2_NV
  , pattern GL_COLOR_ATTACHMENT3_NV
  , pattern GL_COLOR_ATTACHMENT4_NV
  , pattern GL_COLOR_ATTACHMENT5_NV
  , pattern GL_COLOR_ATTACHMENT6_NV
  , pattern GL_COLOR_ATTACHMENT7_NV
  , pattern GL_COLOR_ATTACHMENT8_NV
  , pattern GL_COLOR_ATTACHMENT9_NV
  , pattern GL_DRAW_BUFFER0_NV
  , pattern GL_DRAW_BUFFER10_NV
  , pattern GL_DRAW_BUFFER11_NV
  , pattern GL_DRAW_BUFFER12_NV
  , pattern GL_DRAW_BUFFER13_NV
  , pattern GL_DRAW_BUFFER14_NV
  , pattern GL_DRAW_BUFFER15_NV
  , pattern GL_DRAW_BUFFER1_NV
  , pattern GL_DRAW_BUFFER2_NV
  , pattern GL_DRAW_BUFFER3_NV
  , pattern GL_DRAW_BUFFER4_NV
  , pattern GL_DRAW_BUFFER5_NV
  , pattern GL_DRAW_BUFFER6_NV
  , pattern GL_DRAW_BUFFER7_NV
  , pattern GL_DRAW_BUFFER8_NV
  , pattern GL_DRAW_BUFFER9_NV
  , pattern GL_MAX_DRAW_BUFFERS_NV
) 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/NV/NV_draw_buffers.txt GL_NV_draw_buffers> extension is available.

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

-- | Usage: @'glDrawBuffersNV' n bufs@
--
-- The length of @bufs@ should be @n@.


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

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

{-# NOINLINE glDrawBuffersNVFunPtr #-}

pattern $bGL_DRAW_BUFFER0_NV :: a
$mGL_DRAW_BUFFER0_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER0_NV = 0x8825

pattern $bGL_DRAW_BUFFER10_NV :: a
$mGL_DRAW_BUFFER10_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER10_NV = 0x882F

pattern $bGL_DRAW_BUFFER11_NV :: a
$mGL_DRAW_BUFFER11_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER11_NV = 0x8830

pattern $bGL_DRAW_BUFFER12_NV :: a
$mGL_DRAW_BUFFER12_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER12_NV = 0x8831

pattern $bGL_DRAW_BUFFER13_NV :: a
$mGL_DRAW_BUFFER13_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER13_NV = 0x8832

pattern $bGL_DRAW_BUFFER14_NV :: a
$mGL_DRAW_BUFFER14_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER14_NV = 0x8833

pattern $bGL_DRAW_BUFFER15_NV :: a
$mGL_DRAW_BUFFER15_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER15_NV = 0x8834

pattern $bGL_DRAW_BUFFER1_NV :: a
$mGL_DRAW_BUFFER1_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER1_NV = 0x8826

pattern $bGL_DRAW_BUFFER2_NV :: a
$mGL_DRAW_BUFFER2_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER2_NV = 0x8827

pattern $bGL_DRAW_BUFFER3_NV :: a
$mGL_DRAW_BUFFER3_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER3_NV = 0x8828

pattern $bGL_DRAW_BUFFER4_NV :: a
$mGL_DRAW_BUFFER4_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER4_NV = 0x8829

pattern $bGL_DRAW_BUFFER5_NV :: a
$mGL_DRAW_BUFFER5_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER5_NV = 0x882A

pattern $bGL_DRAW_BUFFER6_NV :: a
$mGL_DRAW_BUFFER6_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER6_NV = 0x882B

pattern $bGL_DRAW_BUFFER7_NV :: a
$mGL_DRAW_BUFFER7_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER7_NV = 0x882C

pattern $bGL_DRAW_BUFFER8_NV :: a
$mGL_DRAW_BUFFER8_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER8_NV = 0x882D

pattern $bGL_DRAW_BUFFER9_NV :: a
$mGL_DRAW_BUFFER9_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_BUFFER9_NV = 0x882E

pattern $bGL_MAX_DRAW_BUFFERS_NV :: a
$mGL_MAX_DRAW_BUFFERS_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_DRAW_BUFFERS_NV = 0x8824