-- 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 = String -> Set String -> Bool
forall a. Ord a => a -> Set a -> Bool
member String
"GL_OES_blend_subtract" Set String
extensions
{-# NOINLINE gl_OES_blend_subtract #-}

-- | Usage: @'glBlendEquationOES' mode@


glBlendEquationOES :: MonadIO m => GLenum -> m ()
glBlendEquationOES :: forall (m :: * -> *). MonadIO m => 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 (String -> IO (FunPtr (GLenum -> IO ()))
forall a. String -> IO (FunPtr a)
getProcAddress String
"glBlendEquationOES")

{-# NOINLINE glBlendEquationOESFunPtr #-}

pattern GL_BLEND_EQUATION_OES  :: (Eq a, Num a) => a

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

pattern GL_FUNC_ADD_OES  :: (Eq a, Num a) => a

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

pattern GL_FUNC_REVERSE_SUBTRACT_OES  :: (Eq a, Num a) => a

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

pattern GL_FUNC_SUBTRACT_OES  :: (Eq a, Num a) => a

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