-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.AMD.DrawBuffersBlend (
  -- * Extension Support
    gl_AMD_draw_buffers_blend

  -- * GL_AMD_draw_buffers_blend
  , glBlendEquationIndexedAMD
  , glBlendEquationSeparateIndexedAMD
  , glBlendFuncIndexedAMD
  , glBlendFuncSeparateIndexedAMD
) 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/AMD/draw_buffers_blend.txt GL_AMD_draw_buffers_blend> extension is available.

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

-- | Usage: @'glBlendEquationIndexedAMD' buf mode@
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glBlendEquationi'.


glBlendEquationIndexedAMD :: MonadIO m => GLuint -> GLenum -> m ()
glBlendEquationIndexedAMD :: GLuint -> GLuint -> m ()
glBlendEquationIndexedAMD = FunPtr (GLuint -> GLuint -> IO ()) -> GLuint -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> IO ()) -> GLuint -> GLuint -> m ()
ffiuintenumIOV FunPtr (GLuint -> GLuint -> IO ())
glBlendEquationIndexedAMDFunPtr

glBlendEquationIndexedAMDFunPtr :: FunPtr (GLuint -> GLenum -> IO ())
glBlendEquationIndexedAMDFunPtr :: FunPtr (GLuint -> GLuint -> IO ())
glBlendEquationIndexedAMDFunPtr = IO (FunPtr (GLuint -> GLuint -> IO ()))
-> FunPtr (GLuint -> GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glBlendEquationIndexedAMD")

{-# NOINLINE glBlendEquationIndexedAMDFunPtr #-}

-- | Usage: @'glBlendEquationSeparateIndexedAMD' buf modeRGB modeAlpha@
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glBlendEquationSeparatei'.


glBlendEquationSeparateIndexedAMD :: MonadIO m => GLuint -> GLenum -> GLenum -> m ()
glBlendEquationSeparateIndexedAMD :: GLuint -> GLuint -> GLuint -> m ()
glBlendEquationSeparateIndexedAMD = FunPtr (GLuint -> GLuint -> GLuint -> IO ())
-> GLuint -> GLuint -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> GLuint -> IO ())
-> GLuint -> GLuint -> GLuint -> m ()
ffiuintenumenumIOV FunPtr (GLuint -> GLuint -> GLuint -> IO ())
glBlendEquationSeparateIndexedAMDFunPtr

glBlendEquationSeparateIndexedAMDFunPtr :: FunPtr (GLuint -> GLenum -> GLenum -> IO ())
glBlendEquationSeparateIndexedAMDFunPtr :: FunPtr (GLuint -> GLuint -> GLuint -> IO ())
glBlendEquationSeparateIndexedAMDFunPtr = IO (FunPtr (GLuint -> GLuint -> GLuint -> IO ()))
-> FunPtr (GLuint -> GLuint -> GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLuint -> GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glBlendEquationSeparateIndexedAMD")

{-# NOINLINE glBlendEquationSeparateIndexedAMDFunPtr #-}

-- | Usage: @'glBlendFuncIndexedAMD' buf src dst@
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glBlendFunci'.


glBlendFuncIndexedAMD :: MonadIO m => GLuint -> GLenum -> GLenum -> m ()
glBlendFuncIndexedAMD :: GLuint -> GLuint -> GLuint -> m ()
glBlendFuncIndexedAMD = FunPtr (GLuint -> GLuint -> GLuint -> IO ())
-> GLuint -> GLuint -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> GLuint -> IO ())
-> GLuint -> GLuint -> GLuint -> m ()
ffiuintenumenumIOV FunPtr (GLuint -> GLuint -> GLuint -> IO ())
glBlendFuncIndexedAMDFunPtr

glBlendFuncIndexedAMDFunPtr :: FunPtr (GLuint -> GLenum -> GLenum -> IO ())
glBlendFuncIndexedAMDFunPtr :: FunPtr (GLuint -> GLuint -> GLuint -> IO ())
glBlendFuncIndexedAMDFunPtr = IO (FunPtr (GLuint -> GLuint -> GLuint -> IO ()))
-> FunPtr (GLuint -> GLuint -> GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLuint -> GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glBlendFuncIndexedAMD")

{-# NOINLINE glBlendFuncIndexedAMDFunPtr #-}

-- | Usage: @'glBlendFuncSeparateIndexedAMD' buf srcRGB dstRGB srcAlpha dstAlpha@
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glBlendFuncSeparatei'.


glBlendFuncSeparateIndexedAMD :: MonadIO m => GLuint -> GLenum -> GLenum -> GLenum -> GLenum -> m ()
glBlendFuncSeparateIndexedAMD :: GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> m ()
glBlendFuncSeparateIndexedAMD = FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
-> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
-> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> m ()
ffiuintenumenumenumenumIOV FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
glBlendFuncSeparateIndexedAMDFunPtr

glBlendFuncSeparateIndexedAMDFunPtr :: FunPtr (GLuint -> GLenum -> GLenum -> GLenum -> GLenum -> IO ())
glBlendFuncSeparateIndexedAMDFunPtr :: FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
glBlendFuncSeparateIndexedAMDFunPtr = IO
  (FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ()))
-> FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glBlendFuncSeparateIndexedAMD")

{-# NOINLINE glBlendFuncSeparateIndexedAMDFunPtr #-}