-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.EXT.ClearTexture (
  -- * Extension Support
    gl_EXT_clear_texture

  -- * GL_EXT_clear_texture
  , glClearTexImageEXT
  , glClearTexSubImageEXT
) 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/OpenGL/extensions/EXT/EXT_clear_texture.txt GL_EXT_clear_texture> extension is available.

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

-- | Usage: @'glClearTexImageEXT' texture level format type data@
--
-- The length of @data@ should be @COMPSIZE(format,type)@.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glClearTexImage'.


glClearTexImageEXT :: MonadIO m => GLuint -> GLint -> GLenum -> GLenum -> Ptr () -> m ()
glClearTexImageEXT :: GLuint -> GLint -> GLuint -> GLuint -> Ptr () -> m ()
glClearTexImageEXT = FunPtr (GLuint -> GLint -> GLuint -> GLuint -> Ptr () -> IO ())
-> GLuint -> GLint -> GLuint -> GLuint -> Ptr () -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLint -> GLuint -> GLuint -> Ptr () -> IO ())
-> GLuint -> GLint -> GLuint -> GLuint -> Ptr () -> m ()
ffiuintintenumenumPtrVIOV FunPtr (GLuint -> GLint -> GLuint -> GLuint -> Ptr () -> IO ())
glClearTexImageEXTFunPtr

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

{-# NOINLINE glClearTexImageEXTFunPtr #-}

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


glClearTexSubImageEXT :: MonadIO m => GLuint -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLenum -> GLenum -> Ptr () -> m ()
glClearTexSubImageEXT :: GLuint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLuint
-> GLuint
-> Ptr ()
-> m ()
glClearTexSubImageEXT = FunPtr
  (GLuint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLuint
   -> GLuint
   -> Ptr ()
   -> IO ())
-> GLuint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLuint
-> GLuint
-> Ptr ()
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLuint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLuint
   -> GLuint
   -> Ptr ()
   -> IO ())
-> GLuint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLuint
-> GLuint
-> Ptr ()
-> m ()
ffiuintintintintintsizeisizeisizeienumenumPtrVIOV FunPtr
  (GLuint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLuint
   -> GLuint
   -> Ptr ()
   -> IO ())
glClearTexSubImageEXTFunPtr

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

{-# NOINLINE glClearTexSubImageEXTFunPtr #-}