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

  -- * GL_ARB_draw_buffers_blend
  , glBlendEquationSeparateiARB
  , glBlendEquationiARB
  , glBlendFuncSeparateiARB
  , glBlendFunciARB
) 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_blend.txt GL_ARB_draw_buffers_blend> extension is available.

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

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


glBlendEquationSeparateiARB :: MonadIO m => GLuint -> GLenum -> GLenum -> m ()
glBlendEquationSeparateiARB :: GLuint -> GLuint -> GLuint -> m ()
glBlendEquationSeparateiARB = 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 ())
glBlendEquationSeparateiARBFunPtr

glBlendEquationSeparateiARBFunPtr :: FunPtr (GLuint -> GLenum -> GLenum -> IO ())
glBlendEquationSeparateiARBFunPtr :: FunPtr (GLuint -> GLuint -> GLuint -> IO ())
glBlendEquationSeparateiARBFunPtr = 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 "glBlendEquationSeparateiARB")

{-# NOINLINE glBlendEquationSeparateiARBFunPtr #-}

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


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

glBlendEquationiARBFunPtr :: FunPtr (GLuint -> GLenum -> IO ())
glBlendEquationiARBFunPtr :: FunPtr (GLuint -> GLuint -> IO ())
glBlendEquationiARBFunPtr = 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 "glBlendEquationiARB")

{-# NOINLINE glBlendEquationiARBFunPtr #-}

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


glBlendFuncSeparateiARB :: MonadIO m => GLuint -> GLenum -> GLenum -> GLenum -> GLenum -> m ()
glBlendFuncSeparateiARB :: GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> m ()
glBlendFuncSeparateiARB = 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 ())
glBlendFuncSeparateiARBFunPtr

glBlendFuncSeparateiARBFunPtr :: FunPtr (GLuint -> GLenum -> GLenum -> GLenum -> GLenum -> IO ())
glBlendFuncSeparateiARBFunPtr :: FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
glBlendFuncSeparateiARBFunPtr = 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 "glBlendFuncSeparateiARB")

{-# NOINLINE glBlendFuncSeparateiARBFunPtr #-}

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


glBlendFunciARB :: MonadIO m => GLuint -> GLenum -> GLenum -> m ()
glBlendFunciARB :: GLuint -> GLuint -> GLuint -> m ()
glBlendFunciARB = 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 ())
glBlendFunciARBFunPtr

glBlendFunciARBFunPtr :: FunPtr (GLuint -> GLenum -> GLenum -> IO ())
glBlendFunciARBFunPtr :: FunPtr (GLuint -> GLuint -> GLuint -> IO ())
glBlendFunciARBFunPtr = 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 "glBlendFunciARB")

{-# NOINLINE glBlendFunciARBFunPtr #-}