{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.EXT.TextureObject (
gl_EXT_texture_object
, glAreTexturesResidentEXT
, glBindTextureEXT
, glDeleteTexturesEXT
, glGenTexturesEXT
, glIsTextureEXT
, glPrioritizeTexturesEXT
, pattern GL_TEXTURE_1D_BINDING_EXT
, pattern GL_TEXTURE_2D_BINDING_EXT
, pattern GL_TEXTURE_3D_BINDING_EXT
, pattern GL_TEXTURE_PRIORITY_EXT
, pattern GL_TEXTURE_RESIDENT_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.Types
import System.IO.Unsafe
gl_EXT_texture_object :: Bool
gl_EXT_texture_object :: Bool
gl_EXT_texture_object = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_EXT_texture_object" Set [Char]
extensions
{-# NOINLINE gl_EXT_texture_object #-}
glAreTexturesResidentEXT :: MonadIO m => GLsizei -> Ptr GLuint -> Ptr GLboolean -> m GLboolean
glAreTexturesResidentEXT :: GLsizei -> Ptr GLuint -> Ptr GLboolean -> m GLboolean
glAreTexturesResidentEXT = FunPtr (GLsizei -> Ptr GLuint -> Ptr GLboolean -> IO GLboolean)
-> GLsizei -> Ptr GLuint -> Ptr GLboolean -> m GLboolean
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLsizei -> Ptr GLuint -> Ptr GLboolean -> IO GLboolean)
-> GLsizei -> Ptr GLuint -> Ptr GLboolean -> m GLboolean
ffisizeiPtruintPtrbooleanIOboolean FunPtr (GLsizei -> Ptr GLuint -> Ptr GLboolean -> IO GLboolean)
glAreTexturesResidentEXTFunPtr
glAreTexturesResidentEXTFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> Ptr GLboolean -> IO GLboolean)
glAreTexturesResidentEXTFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> Ptr GLboolean -> IO GLboolean)
glAreTexturesResidentEXTFunPtr = IO
(FunPtr (GLsizei -> Ptr GLuint -> Ptr GLboolean -> IO GLboolean))
-> FunPtr (GLsizei -> Ptr GLuint -> Ptr GLboolean -> IO GLboolean)
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
(FunPtr (GLsizei -> Ptr GLuint -> Ptr GLboolean -> IO GLboolean))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glAreTexturesResidentEXT")
{-# NOINLINE glAreTexturesResidentEXTFunPtr #-}
glBindTextureEXT :: MonadIO m => GLenum -> GLuint -> m ()
glBindTextureEXT :: GLuint -> GLuint -> m ()
glBindTextureEXT = FunPtr (GLuint -> GLuint -> IO ()) -> GLuint -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> IO ()) -> GLuint -> GLuint -> m ()
ffienumuintIOV FunPtr (GLuint -> GLuint -> IO ())
glBindTextureEXTFunPtr
glBindTextureEXTFunPtr :: FunPtr (GLenum -> GLuint -> IO ())
glBindTextureEXTFunPtr :: FunPtr (GLuint -> GLuint -> IO ())
glBindTextureEXTFunPtr = IO (FunPtr (GLuint -> GLuint -> IO ()))
-> FunPtr (GLuint -> GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glBindTextureEXT")
{-# NOINLINE glBindTextureEXTFunPtr #-}
glDeleteTexturesEXT :: MonadIO m => GLsizei -> Ptr GLuint -> m ()
glDeleteTexturesEXT :: GLsizei -> Ptr GLuint -> m ()
glDeleteTexturesEXT = FunPtr (GLsizei -> Ptr GLuint -> IO ())
-> GLsizei -> Ptr GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLsizei -> Ptr GLuint -> IO ())
-> GLsizei -> Ptr GLuint -> m ()
ffisizeiPtruintIOV FunPtr (GLsizei -> Ptr GLuint -> IO ())
glDeleteTexturesEXTFunPtr
glDeleteTexturesEXTFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> IO ())
glDeleteTexturesEXTFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> IO ())
glDeleteTexturesEXTFunPtr = IO (FunPtr (GLsizei -> Ptr GLuint -> IO ()))
-> FunPtr (GLsizei -> Ptr GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLsizei -> Ptr GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glDeleteTexturesEXT")
{-# NOINLINE glDeleteTexturesEXTFunPtr #-}
glGenTexturesEXT :: MonadIO m => GLsizei -> Ptr GLuint -> m ()
glGenTexturesEXT :: GLsizei -> Ptr GLuint -> m ()
glGenTexturesEXT = FunPtr (GLsizei -> Ptr GLuint -> IO ())
-> GLsizei -> Ptr GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLsizei -> Ptr GLuint -> IO ())
-> GLsizei -> Ptr GLuint -> m ()
ffisizeiPtruintIOV FunPtr (GLsizei -> Ptr GLuint -> IO ())
glGenTexturesEXTFunPtr
glGenTexturesEXTFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> IO ())
glGenTexturesEXTFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> IO ())
glGenTexturesEXTFunPtr = IO (FunPtr (GLsizei -> Ptr GLuint -> IO ()))
-> FunPtr (GLsizei -> Ptr GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLsizei -> Ptr GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGenTexturesEXT")
{-# NOINLINE glGenTexturesEXTFunPtr #-}
glIsTextureEXT :: MonadIO m => GLuint -> m GLboolean
glIsTextureEXT :: GLuint -> m GLboolean
glIsTextureEXT = FunPtr (GLuint -> IO GLboolean) -> GLuint -> m GLboolean
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> IO GLboolean) -> GLuint -> m GLboolean
ffiuintIOboolean FunPtr (GLuint -> IO GLboolean)
glIsTextureEXTFunPtr
glIsTextureEXTFunPtr :: FunPtr (GLuint -> IO GLboolean)
glIsTextureEXTFunPtr :: FunPtr (GLuint -> IO GLboolean)
glIsTextureEXTFunPtr = IO (FunPtr (GLuint -> IO GLboolean))
-> FunPtr (GLuint -> IO GLboolean)
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> IO GLboolean))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glIsTextureEXT")
{-# NOINLINE glIsTextureEXTFunPtr #-}
glPrioritizeTexturesEXT :: MonadIO m => GLsizei -> Ptr GLuint -> Ptr GLclampf -> m ()
glPrioritizeTexturesEXT :: GLsizei -> Ptr GLuint -> Ptr GLclampf -> m ()
glPrioritizeTexturesEXT = FunPtr (GLsizei -> Ptr GLuint -> Ptr GLclampf -> IO ())
-> GLsizei -> Ptr GLuint -> Ptr GLclampf -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLsizei -> Ptr GLuint -> Ptr GLclampf -> IO ())
-> GLsizei -> Ptr GLuint -> Ptr GLclampf -> m ()
ffisizeiPtruintPtrclampfIOV FunPtr (GLsizei -> Ptr GLuint -> Ptr GLclampf -> IO ())
glPrioritizeTexturesEXTFunPtr
glPrioritizeTexturesEXTFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> Ptr GLclampf -> IO ())
glPrioritizeTexturesEXTFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> Ptr GLclampf -> IO ())
glPrioritizeTexturesEXTFunPtr = IO (FunPtr (GLsizei -> Ptr GLuint -> Ptr GLclampf -> IO ()))
-> FunPtr (GLsizei -> Ptr GLuint -> Ptr GLclampf -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO (FunPtr (GLsizei -> Ptr GLuint -> Ptr GLclampf -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glPrioritizeTexturesEXT")
{-# NOINLINE glPrioritizeTexturesEXTFunPtr #-}
pattern $bGL_TEXTURE_1D_BINDING_EXT :: a
$mGL_TEXTURE_1D_BINDING_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_1D_BINDING_EXT = 0x8068
pattern $bGL_TEXTURE_2D_BINDING_EXT :: a
$mGL_TEXTURE_2D_BINDING_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_2D_BINDING_EXT = 0x8069
pattern $bGL_TEXTURE_3D_BINDING_EXT :: a
$mGL_TEXTURE_3D_BINDING_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_3D_BINDING_EXT = 0x806A
pattern $bGL_TEXTURE_PRIORITY_EXT :: a
$mGL_TEXTURE_PRIORITY_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_PRIORITY_EXT = 0x8066
pattern $bGL_TEXTURE_RESIDENT_EXT :: a
$mGL_TEXTURE_RESIDENT_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_RESIDENT_EXT = 0x8067