{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.OES.TextureBuffer (
gl_OES_texture_buffer
, glTexBufferOES
, glTexBufferRangeOES
, pattern GL_IMAGE_BUFFER_OES
, pattern GL_INT_IMAGE_BUFFER_OES
, pattern GL_INT_SAMPLER_BUFFER_OES
, pattern GL_MAX_TEXTURE_BUFFER_SIZE_OES
, pattern GL_SAMPLER_BUFFER_OES
, pattern GL_TEXTURE_BINDING_BUFFER_OES
, pattern GL_TEXTURE_BUFFER_BINDING_OES
, pattern GL_TEXTURE_BUFFER_DATA_STORE_BINDING_OES
, pattern GL_TEXTURE_BUFFER_OES
, pattern GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_OES
, pattern GL_TEXTURE_BUFFER_OFFSET_OES
, pattern GL_TEXTURE_BUFFER_SIZE_OES
, pattern GL_UNSIGNED_INT_IMAGE_BUFFER_OES
, pattern GL_UNSIGNED_INT_SAMPLER_BUFFER_OES
) 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_OES_texture_buffer :: Bool
gl_OES_texture_buffer :: Bool
gl_OES_texture_buffer = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_OES_texture_buffer" Set [Char]
extensions
{-# NOINLINE gl_OES_texture_buffer #-}
glTexBufferOES :: MonadIO m => GLenum -> GLenum -> GLuint -> m ()
glTexBufferOES :: GLenum -> GLenum -> GLenum -> m ()
glTexBufferOES = FunPtr (GLenum -> GLenum -> GLenum -> IO ())
-> GLenum -> GLenum -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLenum -> GLenum -> IO ())
-> GLenum -> GLenum -> GLenum -> m ()
ffienumenumuintIOV FunPtr (GLenum -> GLenum -> GLenum -> IO ())
glTexBufferOESFunPtr
glTexBufferOESFunPtr :: FunPtr (GLenum -> GLenum -> GLuint -> IO ())
glTexBufferOESFunPtr :: FunPtr (GLenum -> GLenum -> GLenum -> IO ())
glTexBufferOESFunPtr = IO (FunPtr (GLenum -> GLenum -> GLenum -> IO ()))
-> FunPtr (GLenum -> GLenum -> GLenum -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLenum -> GLenum -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glTexBufferOES")
{-# NOINLINE glTexBufferOESFunPtr #-}
glTexBufferRangeOES :: MonadIO m => GLenum -> GLenum -> GLuint -> GLintptr -> GLsizeiptr -> m ()
glTexBufferRangeOES :: GLenum -> GLenum -> GLenum -> GLintptr -> GLintptr -> m ()
glTexBufferRangeOES = FunPtr
(GLenum -> GLenum -> GLenum -> GLintptr -> GLintptr -> IO ())
-> GLenum -> GLenum -> GLenum -> GLintptr -> GLintptr -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
(GLenum -> GLenum -> GLenum -> GLintptr -> GLintptr -> IO ())
-> GLenum -> GLenum -> GLenum -> GLintptr -> GLintptr -> m ()
ffienumenumuintintptrsizeiptrIOV FunPtr
(GLenum -> GLenum -> GLenum -> GLintptr -> GLintptr -> IO ())
glTexBufferRangeOESFunPtr
glTexBufferRangeOESFunPtr :: FunPtr (GLenum -> GLenum -> GLuint -> GLintptr -> GLsizeiptr -> IO ())
glTexBufferRangeOESFunPtr :: FunPtr
(GLenum -> GLenum -> GLenum -> GLintptr -> GLintptr -> IO ())
glTexBufferRangeOESFunPtr = IO
(FunPtr
(GLenum -> GLenum -> GLenum -> GLintptr -> GLintptr -> IO ()))
-> FunPtr
(GLenum -> GLenum -> GLenum -> GLintptr -> GLintptr -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
(FunPtr
(GLenum -> GLenum -> GLenum -> GLintptr -> GLintptr -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glTexBufferRangeOES")
{-# NOINLINE glTexBufferRangeOESFunPtr #-}
pattern $bGL_IMAGE_BUFFER_OES :: a
$mGL_IMAGE_BUFFER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_IMAGE_BUFFER_OES = 0x9051
pattern $bGL_INT_IMAGE_BUFFER_OES :: a
$mGL_INT_IMAGE_BUFFER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_INT_IMAGE_BUFFER_OES = 0x905C
pattern $bGL_INT_SAMPLER_BUFFER_OES :: a
$mGL_INT_SAMPLER_BUFFER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_INT_SAMPLER_BUFFER_OES = 0x8DD0
pattern $bGL_MAX_TEXTURE_BUFFER_SIZE_OES :: a
$mGL_MAX_TEXTURE_BUFFER_SIZE_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TEXTURE_BUFFER_SIZE_OES = 0x8C2B
pattern $bGL_SAMPLER_BUFFER_OES :: a
$mGL_SAMPLER_BUFFER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SAMPLER_BUFFER_OES = 0x8DC2
pattern $bGL_TEXTURE_BINDING_BUFFER_OES :: a
$mGL_TEXTURE_BINDING_BUFFER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_BINDING_BUFFER_OES = 0x8C2C
pattern $bGL_TEXTURE_BUFFER_BINDING_OES :: a
$mGL_TEXTURE_BUFFER_BINDING_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_BUFFER_BINDING_OES = 0x8C2A
pattern $bGL_TEXTURE_BUFFER_DATA_STORE_BINDING_OES :: a
$mGL_TEXTURE_BUFFER_DATA_STORE_BINDING_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_BUFFER_DATA_STORE_BINDING_OES = 0x8C2D
pattern $bGL_TEXTURE_BUFFER_OES :: a
$mGL_TEXTURE_BUFFER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_BUFFER_OES = 0x8C2A
pattern $bGL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_OES :: a
$mGL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_OES = 0x919F
pattern $bGL_TEXTURE_BUFFER_OFFSET_OES :: a
$mGL_TEXTURE_BUFFER_OFFSET_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_BUFFER_OFFSET_OES = 0x919D
pattern $bGL_TEXTURE_BUFFER_SIZE_OES :: a
$mGL_TEXTURE_BUFFER_SIZE_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_BUFFER_SIZE_OES = 0x919E
pattern $bGL_UNSIGNED_INT_IMAGE_BUFFER_OES :: a
$mGL_UNSIGNED_INT_IMAGE_BUFFER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_UNSIGNED_INT_IMAGE_BUFFER_OES = 0x9067
pattern $bGL_UNSIGNED_INT_SAMPLER_BUFFER_OES :: a
$mGL_UNSIGNED_INT_SAMPLER_BUFFER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_UNSIGNED_INT_SAMPLER_BUFFER_OES = 0x8DD8