-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.NV.CoverageSample (
  -- * Extension Support
    gl_NV_coverage_sample

  -- * GL_NV_coverage_sample
  , glCoverageMaskNV
  , glCoverageOperationNV
  , pattern GL_COVERAGE_ALL_FRAGMENTS_NV
  , pattern GL_COVERAGE_ATTACHMENT_NV
  , pattern GL_COVERAGE_AUTOMATIC_NV
  , pattern GL_COVERAGE_BUFFERS_NV
  , pattern GL_COVERAGE_BUFFER_BIT_NV
  , pattern GL_COVERAGE_COMPONENT4_NV
  , pattern GL_COVERAGE_COMPONENT_NV
  , pattern GL_COVERAGE_EDGE_FRAGMENTS_NV
  , pattern GL_COVERAGE_SAMPLES_NV
) 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/NV/NV_coverage_sample.txt GL_NV_coverage_sample> extension is available.

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

-- | Usage: @'glCoverageMaskNV' mask@


glCoverageMaskNV :: MonadIO m => GLboolean -> m ()
glCoverageMaskNV :: GLboolean -> m ()
glCoverageMaskNV = FunPtr (GLboolean -> IO ()) -> GLboolean -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLboolean -> IO ()) -> GLboolean -> m ()
ffibooleanIOV FunPtr (GLboolean -> IO ())
glCoverageMaskNVFunPtr

glCoverageMaskNVFunPtr :: FunPtr (GLboolean -> IO ())
glCoverageMaskNVFunPtr :: FunPtr (GLboolean -> IO ())
glCoverageMaskNVFunPtr = IO (FunPtr (GLboolean -> IO ())) -> FunPtr (GLboolean -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLboolean -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glCoverageMaskNV")

{-# NOINLINE glCoverageMaskNVFunPtr #-}

-- | Usage: @'glCoverageOperationNV' operation@


glCoverageOperationNV :: MonadIO m => GLenum -> m ()
glCoverageOperationNV :: GLenum -> m ()
glCoverageOperationNV = FunPtr (GLenum -> IO ()) -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> IO ()) -> GLenum -> m ()
ffienumIOV FunPtr (GLenum -> IO ())
glCoverageOperationNVFunPtr

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

{-# NOINLINE glCoverageOperationNVFunPtr #-}

pattern $bGL_COVERAGE_ALL_FRAGMENTS_NV :: a
$mGL_COVERAGE_ALL_FRAGMENTS_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COVERAGE_ALL_FRAGMENTS_NV = 0x8ED5

pattern $bGL_COVERAGE_ATTACHMENT_NV :: a
$mGL_COVERAGE_ATTACHMENT_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COVERAGE_ATTACHMENT_NV = 0x8ED2

pattern $bGL_COVERAGE_AUTOMATIC_NV :: a
$mGL_COVERAGE_AUTOMATIC_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COVERAGE_AUTOMATIC_NV = 0x8ED7

pattern $bGL_COVERAGE_BUFFERS_NV :: a
$mGL_COVERAGE_BUFFERS_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COVERAGE_BUFFERS_NV = 0x8ED3

pattern $bGL_COVERAGE_BUFFER_BIT_NV :: a
$mGL_COVERAGE_BUFFER_BIT_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COVERAGE_BUFFER_BIT_NV = 0x00008000

pattern $bGL_COVERAGE_COMPONENT4_NV :: a
$mGL_COVERAGE_COMPONENT4_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COVERAGE_COMPONENT4_NV = 0x8ED1

pattern $bGL_COVERAGE_COMPONENT_NV :: a
$mGL_COVERAGE_COMPONENT_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COVERAGE_COMPONENT_NV = 0x8ED0

pattern $bGL_COVERAGE_EDGE_FRAGMENTS_NV :: a
$mGL_COVERAGE_EDGE_FRAGMENTS_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COVERAGE_EDGE_FRAGMENTS_NV = 0x8ED6

pattern $bGL_COVERAGE_SAMPLES_NV :: a
$mGL_COVERAGE_SAMPLES_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COVERAGE_SAMPLES_NV = 0x8ED4