{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.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
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 #-}
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