{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.EXT.Robustness (
gl_EXT_robustness
, glGetGraphicsResetStatusEXT
, glGetnUniformfvEXT
, glGetnUniformivEXT
, glReadnPixelsEXT
, pattern GL_CONTEXT_ROBUST_ACCESS_EXT
, pattern GL_GUILTY_CONTEXT_RESET_EXT
, pattern GL_INNOCENT_CONTEXT_RESET_EXT
, pattern GL_LOSE_CONTEXT_ON_RESET_EXT
, pattern GL_NO_ERROR
, pattern GL_NO_RESET_NOTIFICATION_EXT
, pattern GL_RESET_NOTIFICATION_STRATEGY_EXT
, pattern GL_UNKNOWN_CONTEXT_RESET_EXT
) 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_EXT_robustness :: Bool
gl_EXT_robustness :: Bool
gl_EXT_robustness = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_EXT_robustness" Set [Char]
extensions
{-# NOINLINE gl_EXT_robustness #-}
glGetGraphicsResetStatusEXT :: MonadIO m => m GLenum
glGetGraphicsResetStatusEXT :: m GLenum
glGetGraphicsResetStatusEXT = FunPtr (IO GLenum) -> m GLenum
forall (m :: * -> *). MonadIO m => FunPtr (IO GLenum) -> m GLenum
ffiIOenum FunPtr (IO GLenum)
glGetGraphicsResetStatusEXTFunPtr
glGetGraphicsResetStatusEXTFunPtr :: FunPtr (IO GLenum)
glGetGraphicsResetStatusEXTFunPtr :: FunPtr (IO GLenum)
glGetGraphicsResetStatusEXTFunPtr = IO (FunPtr (IO GLenum)) -> FunPtr (IO GLenum)
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (IO GLenum))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetGraphicsResetStatusEXT")
{-# NOINLINE glGetGraphicsResetStatusEXTFunPtr #-}
glGetnUniformfvEXT :: MonadIO m => GLuint -> GLint -> GLsizei -> Ptr GLfloat -> m ()
glGetnUniformfvEXT :: GLenum -> GLint -> GLint -> Ptr GLfloat -> m ()
glGetnUniformfvEXT = FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ())
-> GLenum -> GLint -> GLint -> Ptr GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ())
-> GLenum -> GLint -> GLint -> Ptr GLfloat -> m ()
ffiuintintsizeiPtrfloatIOV FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ())
glGetnUniformfvEXTFunPtr
glGetnUniformfvEXTFunPtr :: FunPtr (GLuint -> GLint -> GLsizei -> Ptr GLfloat -> IO ())
glGetnUniformfvEXTFunPtr :: FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ())
glGetnUniformfvEXTFunPtr = IO (FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ()))
-> FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO (FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetnUniformfvEXT")
{-# NOINLINE glGetnUniformfvEXTFunPtr #-}
glGetnUniformivEXT :: MonadIO m => GLuint -> GLint -> GLsizei -> Ptr GLint -> m ()
glGetnUniformivEXT :: GLenum -> GLint -> GLint -> Ptr GLint -> m ()
glGetnUniformivEXT = FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ())
-> GLenum -> GLint -> GLint -> Ptr GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ())
-> GLenum -> GLint -> GLint -> Ptr GLint -> m ()
ffiuintintsizeiPtrintIOV FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ())
glGetnUniformivEXTFunPtr
glGetnUniformivEXTFunPtr :: FunPtr (GLuint -> GLint -> GLsizei -> Ptr GLint -> IO ())
glGetnUniformivEXTFunPtr :: FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ())
glGetnUniformivEXTFunPtr = IO (FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ()))
-> FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO (FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetnUniformivEXT")
{-# NOINLINE glGetnUniformivEXTFunPtr #-}
glReadnPixelsEXT :: MonadIO m => GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLenum -> GLsizei -> Ptr () -> m ()
glReadnPixelsEXT :: GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> m ()
glReadnPixelsEXT = FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ())
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ())
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> m ()
ffiintintsizeisizeienumenumsizeiPtrVIOV FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ())
glReadnPixelsEXTFunPtr
glReadnPixelsEXTFunPtr :: FunPtr (GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLenum -> GLsizei -> Ptr () -> IO ())
glReadnPixelsEXTFunPtr :: FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ())
glReadnPixelsEXTFunPtr = IO
(FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ()))
-> FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
(FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glReadnPixelsEXT")
{-# NOINLINE glReadnPixelsEXTFunPtr #-}
pattern $bGL_CONTEXT_ROBUST_ACCESS_EXT :: a
$mGL_CONTEXT_ROBUST_ACCESS_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CONTEXT_ROBUST_ACCESS_EXT = 0x90F3
pattern $bGL_GUILTY_CONTEXT_RESET_EXT :: a
$mGL_GUILTY_CONTEXT_RESET_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_GUILTY_CONTEXT_RESET_EXT = 0x8253
pattern $bGL_INNOCENT_CONTEXT_RESET_EXT :: a
$mGL_INNOCENT_CONTEXT_RESET_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_INNOCENT_CONTEXT_RESET_EXT = 0x8254
pattern $bGL_LOSE_CONTEXT_ON_RESET_EXT :: a
$mGL_LOSE_CONTEXT_ON_RESET_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_LOSE_CONTEXT_ON_RESET_EXT = 0x8252
pattern $bGL_NO_RESET_NOTIFICATION_EXT :: a
$mGL_NO_RESET_NOTIFICATION_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_NO_RESET_NOTIFICATION_EXT = 0x8261
pattern $bGL_RESET_NOTIFICATION_STRATEGY_EXT :: a
$mGL_RESET_NOTIFICATION_STRATEGY_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_RESET_NOTIFICATION_STRATEGY_EXT = 0x8256
pattern $bGL_UNKNOWN_CONTEXT_RESET_EXT :: a
$mGL_UNKNOWN_CONTEXT_RESET_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_UNKNOWN_CONTEXT_RESET_EXT = 0x8255