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

  -- * GL_ARB_multisample
  , glSampleCoverageARB
  , pattern GL_MULTISAMPLE_ARB
  , pattern GL_MULTISAMPLE_BIT_ARB
  , pattern GL_SAMPLES_ARB
  , pattern GL_SAMPLE_ALPHA_TO_COVERAGE_ARB
  , pattern GL_SAMPLE_ALPHA_TO_ONE_ARB
  , pattern GL_SAMPLE_BUFFERS_ARB
  , pattern GL_SAMPLE_COVERAGE_ARB
  , pattern GL_SAMPLE_COVERAGE_INVERT_ARB
  , pattern GL_SAMPLE_COVERAGE_VALUE_ARB
) 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.Internal.Shared
import Graphics.GL.Types
import System.IO.Unsafe

-- | Checks that the <https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/specs/ARB/multisample.txt GL_ARB_multisample> extension is available.

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

-- | Usage: @'glSampleCoverageARB' value invert@
--
-- The parameter @invert@ is a @Boolean@, one of: 'Graphics.GL.Internal.Shared.GL_FALSE', 'Graphics.GL.Internal.Shared.GL_TRUE'.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glSampleCoverage'.


glSampleCoverageARB :: MonadIO m => GLfloat -> GLboolean -> m ()
glSampleCoverageARB :: GLfloat -> GLboolean -> m ()
glSampleCoverageARB = FunPtr (GLfloat -> GLboolean -> IO ())
-> GLfloat -> GLboolean -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLfloat -> GLboolean -> IO ())
-> GLfloat -> GLboolean -> m ()
ffifloatbooleanIOV FunPtr (GLfloat -> GLboolean -> IO ())
glSampleCoverageARBFunPtr

glSampleCoverageARBFunPtr :: FunPtr (GLfloat -> GLboolean -> IO ())
glSampleCoverageARBFunPtr :: FunPtr (GLfloat -> GLboolean -> IO ())
glSampleCoverageARBFunPtr = IO (FunPtr (GLfloat -> GLboolean -> IO ()))
-> FunPtr (GLfloat -> GLboolean -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLfloat -> GLboolean -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glSampleCoverageARB")

{-# NOINLINE glSampleCoverageARBFunPtr #-}

pattern $bGL_MULTISAMPLE_ARB :: a
$mGL_MULTISAMPLE_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MULTISAMPLE_ARB = 0x809D

pattern $bGL_MULTISAMPLE_BIT_ARB :: a
$mGL_MULTISAMPLE_BIT_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MULTISAMPLE_BIT_ARB = 0x20000000

pattern $bGL_SAMPLE_ALPHA_TO_COVERAGE_ARB :: a
$mGL_SAMPLE_ALPHA_TO_COVERAGE_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E

pattern $bGL_SAMPLE_ALPHA_TO_ONE_ARB :: a
$mGL_SAMPLE_ALPHA_TO_ONE_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SAMPLE_ALPHA_TO_ONE_ARB = 0x809F

pattern $bGL_SAMPLE_BUFFERS_ARB :: a
$mGL_SAMPLE_BUFFERS_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SAMPLE_BUFFERS_ARB = 0x80A8

pattern $bGL_SAMPLE_COVERAGE_ARB :: a
$mGL_SAMPLE_COVERAGE_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SAMPLE_COVERAGE_ARB = 0x80A0

pattern $bGL_SAMPLE_COVERAGE_INVERT_ARB :: a
$mGL_SAMPLE_COVERAGE_INVERT_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SAMPLE_COVERAGE_INVERT_ARB = 0x80AB

pattern $bGL_SAMPLE_COVERAGE_VALUE_ARB :: a
$mGL_SAMPLE_COVERAGE_VALUE_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SAMPLE_COVERAGE_VALUE_ARB = 0x80AA