{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.NV.ConditionalRender (
gl_NV_conditional_render
, glBeginConditionalRenderNV
, glEndConditionalRenderNV
, pattern GL_QUERY_BY_REGION_NO_WAIT_NV
, pattern GL_QUERY_BY_REGION_WAIT_NV
, pattern GL_QUERY_NO_WAIT_NV
, pattern GL_QUERY_WAIT_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
gl_NV_conditional_render :: Bool
gl_NV_conditional_render :: Bool
gl_NV_conditional_render = String -> Set String -> Bool
forall a. Ord a => a -> Set a -> Bool
member String
"GL_NV_conditional_render" Set String
extensions
{-# NOINLINE gl_NV_conditional_render #-}
glBeginConditionalRenderNV :: MonadIO m => GLuint -> GLenum -> m ()
glBeginConditionalRenderNV :: forall (m :: * -> *). MonadIO m => GLuint -> GLuint -> m ()
glBeginConditionalRenderNV = FunPtr (GLuint -> GLuint -> IO ()) -> GLuint -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> IO ()) -> GLuint -> GLuint -> m ()
ffiuintenumIOV FunPtr (GLuint -> GLuint -> IO ())
glBeginConditionalRenderNVFunPtr
glBeginConditionalRenderNVFunPtr :: FunPtr (GLuint -> GLenum -> IO ())
glBeginConditionalRenderNVFunPtr :: FunPtr (GLuint -> GLuint -> IO ())
glBeginConditionalRenderNVFunPtr = IO (FunPtr (GLuint -> GLuint -> IO ()))
-> FunPtr (GLuint -> GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO (String -> IO (FunPtr (GLuint -> GLuint -> IO ()))
forall a. String -> IO (FunPtr a)
getProcAddress String
"glBeginConditionalRenderNV")
{-# NOINLINE glBeginConditionalRenderNVFunPtr #-}
glEndConditionalRenderNV :: MonadIO m => m ()
glEndConditionalRenderNV :: forall (m :: * -> *). MonadIO m => m ()
glEndConditionalRenderNV = FunPtr (IO ()) -> m ()
forall (m :: * -> *). MonadIO m => FunPtr (IO ()) -> m ()
ffiIOV FunPtr (IO ())
glEndConditionalRenderNVFunPtr
glEndConditionalRenderNVFunPtr :: FunPtr (IO ())
glEndConditionalRenderNVFunPtr :: FunPtr (IO ())
glEndConditionalRenderNVFunPtr = IO (FunPtr (IO ())) -> FunPtr (IO ())
forall a. IO a -> a
unsafePerformIO (String -> IO (FunPtr (IO ()))
forall a. String -> IO (FunPtr a)
getProcAddress String
"glEndConditionalRenderNV")
{-# NOINLINE glEndConditionalRenderNVFunPtr #-}
pattern GL_QUERY_BY_REGION_NO_WAIT_NV :: (Eq a, Num a) => a
pattern $mGL_QUERY_BY_REGION_NO_WAIT_NV :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_QUERY_BY_REGION_NO_WAIT_NV :: forall a. (Eq a, Num a) => a
GL_QUERY_BY_REGION_NO_WAIT_NV = 0x8E16
pattern GL_QUERY_BY_REGION_WAIT_NV :: (Eq a, Num a) => a
pattern $mGL_QUERY_BY_REGION_WAIT_NV :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_QUERY_BY_REGION_WAIT_NV :: forall a. (Eq a, Num a) => a
GL_QUERY_BY_REGION_WAIT_NV = 0x8E15
pattern GL_QUERY_NO_WAIT_NV :: (Eq a, Num a) => a
pattern $mGL_QUERY_NO_WAIT_NV :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_QUERY_NO_WAIT_NV :: forall a. (Eq a, Num a) => a
GL_QUERY_NO_WAIT_NV = 0x8E14
pattern GL_QUERY_WAIT_NV :: (Eq a, Num a) => a
pattern $mGL_QUERY_WAIT_NV :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_QUERY_WAIT_NV :: forall a. (Eq a, Num a) => a
GL_QUERY_WAIT_NV = 0x8E13