-- This file was automatically generated.
{-# LANGUAGE ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Raw.Extension.OES.BlendEquationSeparate (
  -- * Extension Support
    gl_OES_blend_equation_separate

  -- * GL_OES_blend_equation_separate
  , glBlendEquationSeparateOES
  , pattern GL_BLEND_EQUATION_ALPHA_OES
  , pattern GL_BLEND_EQUATION_RGB_OES
) where

import Control.Monad.IO.Class
import Data.Set
import Foreign.Ptr
import Graphics.GL.Raw.Internal.FFI
import Graphics.GL.Raw.Internal.Proc
import Graphics.GL.Raw.Types
import System.IO.Unsafe

-- | Checks that the GL_OES_blend_equation_separate extension is available.

gl_OES_blend_equation_separate :: Bool
gl_OES_blend_equation_separate = member "GL_OES_blend_equation_separate" extensions
{-# NOINLINE gl_OES_blend_equation_separate #-}

-- | Usage: @'glBlendEquationSeparateOES' modeRGB modeAlpha@


glBlendEquationSeparateOES :: MonadIO m => GLenum -> GLenum -> m ()
glBlendEquationSeparateOES = ffienumenumIOV glBlendEquationSeparateOESFunPtr

glBlendEquationSeparateOESFunPtr :: FunPtr (GLenum -> GLenum -> IO ())
glBlendEquationSeparateOESFunPtr = unsafePerformIO (getProcAddress "glBlendEquationSeparateOES")

{-# NOINLINE glBlendEquationSeparateOESFunPtr #-}

pattern GL_BLEND_EQUATION_ALPHA_OES = 0x883D

pattern GL_BLEND_EQUATION_RGB_OES = 0x8009