-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.OES.BlendSubtract (
  -- * Extension Support
    gl_OES_blend_subtract

  -- * GL_OES_blend_subtract
  , glBlendEquationOES
  , pattern GL_BLEND_EQUATION_OES
  , pattern GL_FUNC_ADD_OES
  , pattern GL_FUNC_REVERSE_SUBTRACT_OES
  , pattern GL_FUNC_SUBTRACT_OES
) 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/OES/OES_blend_subtract.txt GL_OES_blend_subtract> extension is available.

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

-- | Usage: @'glBlendEquationOES' mode@


glBlendEquationOES :: MonadIO m => GLenum -> m ()
glBlendEquationOES :: GLenum -> m ()
glBlendEquationOES = FunPtr (GLenum -> IO ()) -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> IO ()) -> GLenum -> m ()
ffienumIOV FunPtr (GLenum -> IO ())
glBlendEquationOESFunPtr

glBlendEquationOESFunPtr :: FunPtr (GLenum -> IO ())
glBlendEquationOESFunPtr :: FunPtr (GLenum -> IO ())
glBlendEquationOESFunPtr = 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 "glBlendEquationOES")

{-# NOINLINE glBlendEquationOESFunPtr #-}

pattern $bGL_BLEND_EQUATION_OES :: a
$mGL_BLEND_EQUATION_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_BLEND_EQUATION_OES = 0x8009

pattern $bGL_FUNC_ADD_OES :: a
$mGL_FUNC_ADD_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FUNC_ADD_OES = 0x8006

pattern $bGL_FUNC_REVERSE_SUBTRACT_OES :: a
$mGL_FUNC_REVERSE_SUBTRACT_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FUNC_REVERSE_SUBTRACT_OES = 0x800B

pattern $bGL_FUNC_SUBTRACT_OES :: a
$mGL_FUNC_SUBTRACT_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FUNC_SUBTRACT_OES = 0x800A