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

  -- * GL_EXT_blend_minmax
  , glBlendEquationEXT
  , pattern GL_BLEND_EQUATION_EXT
  , pattern GL_FUNC_ADD_EXT
  , pattern GL_MAX_EXT
  , pattern GL_MIN_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.Types
import System.IO.Unsafe

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

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

-- | Usage: @'glBlendEquationEXT' mode@
--
-- The parameter @mode@ is a @BlendEquationModeEXT@, one of: 'Graphics.GL.Ext.SGIX.BlendAlphaMinmax.GL_ALPHA_MAX_SGIX', 'Graphics.GL.Ext.SGIX.BlendAlphaMinmax.GL_ALPHA_MIN_SGIX', 'Graphics.GL.Ext.EXT.BlendMinmax.GL_FUNC_ADD_EXT', 'Graphics.GL.Ext.EXT.BlendSubtract.GL_FUNC_REVERSE_SUBTRACT_EXT', 'Graphics.GL.Ext.EXT.BlendSubtract.GL_FUNC_SUBTRACT_EXT', 'Graphics.GL.Internal.Shared.GL_LOGIC_OP', 'Graphics.GL.Ext.EXT.BlendMinmax.GL_MAX_EXT', 'Graphics.GL.Ext.EXT.BlendMinmax.GL_MIN_EXT'.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glBlendEquation'.


glBlendEquationEXT :: MonadIO m => GLenum -> m ()
glBlendEquationEXT :: GLenum -> m ()
glBlendEquationEXT = FunPtr (GLenum -> IO ()) -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> IO ()) -> GLenum -> m ()
ffienumIOV FunPtr (GLenum -> IO ())
glBlendEquationEXTFunPtr

glBlendEquationEXTFunPtr :: FunPtr (GLenum -> IO ())
glBlendEquationEXTFunPtr :: FunPtr (GLenum -> IO ())
glBlendEquationEXTFunPtr = IO (FunPtr (GLenum -> IO ())) -> FunPtr (GLenum -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glBlendEquationEXT")

{-# NOINLINE glBlendEquationEXTFunPtr #-}

pattern $bGL_BLEND_EQUATION_EXT :: a
$mGL_BLEND_EQUATION_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_BLEND_EQUATION_EXT = 0x8009

pattern $bGL_FUNC_ADD_EXT :: a
$mGL_FUNC_ADD_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FUNC_ADD_EXT = 0x8006

pattern $bGL_MAX_EXT :: a
$mGL_MAX_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_EXT = 0x8008

pattern $bGL_MIN_EXT :: a
$mGL_MIN_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MIN_EXT = 0x8007