-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.ARB.TextureBufferObject (
  -- * Extension Support
    gl_ARB_texture_buffer_object

  -- * GL_ARB_texture_buffer_object
  , glTexBufferARB
  , pattern GL_MAX_TEXTURE_BUFFER_SIZE_ARB
  , pattern GL_TEXTURE_BINDING_BUFFER_ARB
  , pattern GL_TEXTURE_BUFFER_ARB
  , pattern GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB
  , pattern GL_TEXTURE_BUFFER_FORMAT_ARB
) 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://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/specs/ARB/texture_buffer_object.txt GL_ARB_texture_buffer_object> extension is available.

gl_ARB_texture_buffer_object :: Bool
gl_ARB_texture_buffer_object :: Bool
gl_ARB_texture_buffer_object = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_ARB_texture_buffer_object" Set [Char]
extensions
{-# NOINLINE gl_ARB_texture_buffer_object #-}

-- | Usage: @'glTexBufferARB' 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'.


glTexBufferARB :: MonadIO m => GLenum -> GLenum -> GLuint -> m ()
glTexBufferARB :: GLenum -> GLenum -> GLenum -> m ()
glTexBufferARB = 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 ())
glTexBufferARBFunPtr

glTexBufferARBFunPtr :: FunPtr (GLenum -> GLenum -> GLuint -> IO ())
glTexBufferARBFunPtr :: FunPtr (GLenum -> GLenum -> GLenum -> IO ())
glTexBufferARBFunPtr = 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 "glTexBufferARB")

{-# NOINLINE glTexBufferARBFunPtr #-}

pattern $bGL_MAX_TEXTURE_BUFFER_SIZE_ARB :: a
$mGL_MAX_TEXTURE_BUFFER_SIZE_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TEXTURE_BUFFER_SIZE_ARB = 0x8C2B

pattern $bGL_TEXTURE_BINDING_BUFFER_ARB :: a
$mGL_TEXTURE_BINDING_BUFFER_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_BINDING_BUFFER_ARB = 0x8C2C

pattern $bGL_TEXTURE_BUFFER_ARB :: a
$mGL_TEXTURE_BUFFER_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_BUFFER_ARB = 0x8C2A

pattern $bGL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB :: a
$mGL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB = 0x8C2D

pattern $bGL_TEXTURE_BUFFER_FORMAT_ARB :: a
$mGL_TEXTURE_BUFFER_FORMAT_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_BUFFER_FORMAT_ARB = 0x8C2E