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

  -- * GL_OES_texture_3D
  , glCompressedTexImage3DOES
  , glCompressedTexSubImage3DOES
  , glCopyTexSubImage3DOES
  , glFramebufferTexture3DOES
  , glTexImage3DOES
  , glTexSubImage3DOES
  , pattern GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES
  , pattern GL_MAX_3D_TEXTURE_SIZE_OES
  , pattern GL_SAMPLER_3D_OES
  , pattern GL_TEXTURE_3D_OES
  , pattern GL_TEXTURE_BINDING_3D_OES
  , pattern GL_TEXTURE_WRAP_R_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_3D.txt GL_OES_texture_3D> extension is available.

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

-- | Usage: @'glCompressedTexImage3DOES' target level internalformat width height depth border imageSize data@
--
-- The length of @data@ should be @imageSize@.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glCompressedTexImage3D'.


glCompressedTexImage3DOES :: MonadIO m => GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLsizei -> GLint -> GLsizei -> Ptr () -> m ()
glCompressedTexImage3DOES :: GLenum
-> GLint
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> Ptr ()
-> m ()
glCompressedTexImage3DOES = FunPtr
  (GLenum
   -> GLint
   -> GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> Ptr ()
   -> IO ())
-> GLenum
-> GLint
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> Ptr ()
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLenum
   -> GLint
   -> GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> Ptr ()
   -> IO ())
-> GLenum
-> GLint
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> Ptr ()
-> m ()
ffienumintenumsizeisizeisizeiintsizeiPtrVIOV FunPtr
  (GLenum
   -> GLint
   -> GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> Ptr ()
   -> IO ())
glCompressedTexImage3DOESFunPtr

glCompressedTexImage3DOESFunPtr :: FunPtr (GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLsizei -> GLint -> GLsizei -> Ptr () -> IO ())
glCompressedTexImage3DOESFunPtr :: FunPtr
  (GLenum
   -> GLint
   -> GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> Ptr ()
   -> IO ())
glCompressedTexImage3DOESFunPtr = IO
  (FunPtr
     (GLenum
      -> GLint
      -> GLenum
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> Ptr ()
      -> IO ()))
-> FunPtr
     (GLenum
      -> GLint
      -> GLenum
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> Ptr ()
      -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum
         -> GLint
         -> GLenum
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> Ptr ()
         -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glCompressedTexImage3DOES")

{-# NOINLINE glCompressedTexImage3DOESFunPtr #-}

-- | Usage: @'glCompressedTexSubImage3DOES' target level xoffset yoffset zoffset width height depth format imageSize data@
--
-- The length of @data@ should be @imageSize@.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glCompressedTexSubImage3D'.


glCompressedTexSubImage3DOES :: MonadIO m => GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLenum -> GLsizei -> Ptr () -> m ()
glCompressedTexSubImage3DOES :: GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLint
-> Ptr ()
-> m ()
glCompressedTexSubImage3DOES = FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLenum
   -> GLint
   -> Ptr ()
   -> IO ())
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLint
-> Ptr ()
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLenum
   -> GLint
   -> Ptr ()
   -> IO ())
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLint
-> Ptr ()
-> m ()
ffienumintintintintsizeisizeisizeienumsizeiPtrVIOV FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLenum
   -> GLint
   -> Ptr ()
   -> IO ())
glCompressedTexSubImage3DOESFunPtr

glCompressedTexSubImage3DOESFunPtr :: FunPtr (GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLenum -> GLsizei -> Ptr () -> IO ())
glCompressedTexSubImage3DOESFunPtr :: FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLenum
   -> GLint
   -> Ptr ()
   -> IO ())
glCompressedTexSubImage3DOESFunPtr = IO
  (FunPtr
     (GLenum
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLenum
      -> GLint
      -> Ptr ()
      -> IO ()))
-> FunPtr
     (GLenum
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLenum
      -> GLint
      -> Ptr ()
      -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLenum
         -> GLint
         -> Ptr ()
         -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glCompressedTexSubImage3DOES")

{-# NOINLINE glCompressedTexSubImage3DOESFunPtr #-}

-- | Usage: @'glCopyTexSubImage3DOES' target level xoffset yoffset zoffset x y width height@
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glCopyTexSubImage3D'.


glCopyTexSubImage3DOES :: MonadIO m => GLenum -> GLint -> GLint -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> m ()
glCopyTexSubImage3DOES :: GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> m ()
glCopyTexSubImage3DOES = FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> IO ())
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> IO ())
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> m ()
ffienumintintintintintintsizeisizeiIOV FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> IO ())
glCopyTexSubImage3DOESFunPtr

glCopyTexSubImage3DOESFunPtr :: FunPtr (GLenum -> GLint -> GLint -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> IO ())
glCopyTexSubImage3DOESFunPtr :: FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> IO ())
glCopyTexSubImage3DOESFunPtr = IO
  (FunPtr
     (GLenum
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> IO ()))
-> FunPtr
     (GLenum
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glCopyTexSubImage3DOES")

{-# NOINLINE glCopyTexSubImage3DOESFunPtr #-}

-- | Usage: @'glFramebufferTexture3DOES' target attachment textarget texture level zoffset@
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glFramebufferTexture3D'.


glFramebufferTexture3DOES :: MonadIO m => GLenum -> GLenum -> GLenum -> GLuint -> GLint -> GLint -> m ()
glFramebufferTexture3DOES :: GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> m ()
glFramebufferTexture3DOES = FunPtr
  (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
-> GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
-> GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> m ()
ffienumenumenumuintintintIOV FunPtr
  (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
glFramebufferTexture3DOESFunPtr

glFramebufferTexture3DOESFunPtr :: FunPtr (GLenum -> GLenum -> GLenum -> GLuint -> GLint -> GLint -> IO ())
glFramebufferTexture3DOESFunPtr :: FunPtr
  (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
glFramebufferTexture3DOESFunPtr = IO
  (FunPtr
     (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ()))
-> FunPtr
     (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glFramebufferTexture3DOES")

{-# NOINLINE glFramebufferTexture3DOESFunPtr #-}

-- | Usage: @'glTexImage3DOES' target level internalformat width height depth border format type pixels@
--
-- The length of @pixels@ should be @COMPSIZE(format,type,width,height,depth)@.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glTexImage3D'.


glTexImage3DOES :: MonadIO m => GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLsizei -> GLint -> GLenum -> GLenum -> Ptr () -> m ()
glTexImage3DOES :: GLenum
-> GLint
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> Ptr ()
-> m ()
glTexImage3DOES = FunPtr
  (GLenum
   -> GLint
   -> GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLenum
   -> GLenum
   -> Ptr ()
   -> IO ())
-> GLenum
-> GLint
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> Ptr ()
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLenum
   -> GLint
   -> GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLenum
   -> GLenum
   -> Ptr ()
   -> IO ())
-> GLenum
-> GLint
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> Ptr ()
-> m ()
ffienumintenumsizeisizeisizeiintenumenumPtrVIOV FunPtr
  (GLenum
   -> GLint
   -> GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLenum
   -> GLenum
   -> Ptr ()
   -> IO ())
glTexImage3DOESFunPtr

glTexImage3DOESFunPtr :: FunPtr (GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLsizei -> GLint -> GLenum -> GLenum -> Ptr () -> IO ())
glTexImage3DOESFunPtr :: FunPtr
  (GLenum
   -> GLint
   -> GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLenum
   -> GLenum
   -> Ptr ()
   -> IO ())
glTexImage3DOESFunPtr = IO
  (FunPtr
     (GLenum
      -> GLint
      -> GLenum
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLenum
      -> GLenum
      -> Ptr ()
      -> IO ()))
-> FunPtr
     (GLenum
      -> GLint
      -> GLenum
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLenum
      -> GLenum
      -> Ptr ()
      -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum
         -> GLint
         -> GLenum
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLenum
         -> GLenum
         -> Ptr ()
         -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glTexImage3DOES")

{-# NOINLINE glTexImage3DOESFunPtr #-}

-- | Usage: @'glTexSubImage3DOES' target level xoffset yoffset zoffset width height depth format type pixels@
--
-- The length of @pixels@ should be @COMPSIZE(format,type,width,height,depth)@.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glTexSubImage3D'.


glTexSubImage3DOES :: MonadIO m => GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLenum -> GLenum -> Ptr () -> m ()
glTexSubImage3DOES :: GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> Ptr ()
-> m ()
glTexSubImage3DOES = FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLenum
   -> GLenum
   -> Ptr ()
   -> IO ())
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> Ptr ()
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLenum
   -> GLenum
   -> Ptr ()
   -> IO ())
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> Ptr ()
-> m ()
ffienumintintintintsizeisizeisizeienumenumPtrVIOV FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLenum
   -> GLenum
   -> Ptr ()
   -> IO ())
glTexSubImage3DOESFunPtr

glTexSubImage3DOESFunPtr :: FunPtr (GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLenum -> GLenum -> Ptr () -> IO ())
glTexSubImage3DOESFunPtr :: FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLenum
   -> GLenum
   -> Ptr ()
   -> IO ())
glTexSubImage3DOESFunPtr = IO
  (FunPtr
     (GLenum
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLenum
      -> GLenum
      -> Ptr ()
      -> IO ()))
-> FunPtr
     (GLenum
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLenum
      -> GLenum
      -> Ptr ()
      -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLenum
         -> GLenum
         -> Ptr ()
         -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glTexSubImage3DOES")

{-# NOINLINE glTexSubImage3DOESFunPtr #-}

pattern $bGL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES :: a
$mGL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES = 0x8CD4

pattern $bGL_MAX_3D_TEXTURE_SIZE_OES :: a
$mGL_MAX_3D_TEXTURE_SIZE_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_3D_TEXTURE_SIZE_OES = 0x8073

pattern $bGL_SAMPLER_3D_OES :: a
$mGL_SAMPLER_3D_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SAMPLER_3D_OES = 0x8B5F

pattern $bGL_TEXTURE_3D_OES :: a
$mGL_TEXTURE_3D_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_3D_OES = 0x806F

pattern $bGL_TEXTURE_BINDING_3D_OES :: a
$mGL_TEXTURE_BINDING_3D_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_BINDING_3D_OES = 0x806A

pattern $bGL_TEXTURE_WRAP_R_OES :: a
$mGL_TEXTURE_WRAP_R_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_WRAP_R_OES = 0x8072