-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.OES.TextureBuffer (
  -- * Extension Support
    gl_OES_texture_buffer

  -- * 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

-- | Checks that the <https://www.khronos.org/registry/gles/extensions/OES/OES_texture_buffer.txt GL_OES_texture_buffer> extension is available.

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 #-}

-- | Usage: @'glTexBufferOES' target internalformat buffer@
--
-- The parameter @target@ is a @TextureTarget@, one of: 'Graphics.GL.Ext.SGIS.DetailTexture.GL_DETAIL_TEXTURE_2D_SGIS', 'Graphics.GL.Internal.Shared.GL_PROXY_TEXTURE_1D', 'Graphics.GL.Ext.EXT.Texture.GL_PROXY_TEXTURE_1D_EXT', 'Graphics.GL.Internal.Shared.GL_PROXY_TEXTURE_2D', 'Graphics.GL.Ext.EXT.Texture.GL_PROXY_TEXTURE_2D_EXT', 'Graphics.GL.Internal.Shared.GL_PROXY_TEXTURE_3D', 'Graphics.GL.Ext.EXT.Texture3D.GL_PROXY_TEXTURE_3D_EXT', 'Graphics.GL.Ext.SGIS.Texture4D.GL_PROXY_TEXTURE_4D_SGIS', 'Graphics.GL.Internal.Shared.GL_TEXTURE_1D', 'Graphics.GL.Internal.Shared.GL_TEXTURE_2D', 'Graphics.GL.Internal.Shared.GL_TEXTURE_3D', 'Graphics.GL.Ext.EXT.Texture3D.GL_TEXTURE_3D_EXT', 'Graphics.GL.Ext.OES.Texture3D.GL_TEXTURE_3D_OES', 'Graphics.GL.Ext.SGIS.Texture4D.GL_TEXTURE_4D_SGIS', 'Graphics.GL.Internal.Shared.GL_TEXTURE_BASE_LEVEL', 'Graphics.GL.Ext.SGIS.TextureLod.GL_TEXTURE_BASE_LEVEL_SGIS', 'Graphics.GL.Internal.Shared.GL_TEXTURE_MAX_LEVEL', 'Graphics.GL.Ext.SGIS.TextureLod.GL_TEXTURE_MAX_LEVEL_SGIS', 'Graphics.GL.Internal.Shared.GL_TEXTURE_MAX_LOD', 'Graphics.GL.Ext.SGIS.TextureLod.GL_TEXTURE_MAX_LOD_SGIS', 'Graphics.GL.Internal.Shared.GL_TEXTURE_MIN_LOD', 'Graphics.GL.Ext.SGIS.TextureLod.GL_TEXTURE_MIN_LOD_SGIS'.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glTexBuffer'.


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 #-}

-- | Usage: @'glTexBufferRangeOES' target internalformat buffer offset size@
--
-- The parameter @offset@ is a @BufferOffset@.
--
-- The parameter @size@ is a @BufferSize@.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glTexBufferRange'.


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