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

  -- * GL_EXT_debug_label
  , glGetObjectLabelEXT
  , glLabelObjectEXT
  , pattern GL_BUFFER_OBJECT_EXT
  , pattern GL_PROGRAM_OBJECT_EXT
  , pattern GL_PROGRAM_PIPELINE_OBJECT_EXT
  , pattern GL_QUERY_OBJECT_EXT
  , pattern GL_SAMPLER
  , pattern GL_SHADER_OBJECT_EXT
  , pattern GL_TRANSFORM_FEEDBACK
  , pattern GL_VERTEX_ARRAY_OBJECT_EXT
) 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.Internal.Shared
import Graphics.GL.Types
import System.IO.Unsafe

-- | Checks that the <https://www.khronos.org/registry/gles/extensions/EXT/EXT_debug_label.txt GL_EXT_debug_label> extension is available.

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

-- | Usage: @'glGetObjectLabelEXT' type object bufSize length label@
--
-- The length of @length@ should be @1@.
--
-- The length of @label@ should be @bufSize@.


glGetObjectLabelEXT :: MonadIO m => GLenum -> GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m ()
glGetObjectLabelEXT :: GLenum -> GLenum -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m ()
glGetObjectLabelEXT = FunPtr
  (GLenum -> GLenum -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
-> GLenum -> GLenum -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLenum -> GLenum -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
-> GLenum -> GLenum -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m ()
ffienumuintsizeiPtrsizeiPtrcharIOV FunPtr
  (GLenum -> GLenum -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
glGetObjectLabelEXTFunPtr

glGetObjectLabelEXTFunPtr :: FunPtr (GLenum -> GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
glGetObjectLabelEXTFunPtr :: FunPtr
  (GLenum -> GLenum -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
glGetObjectLabelEXTFunPtr = IO
  (FunPtr
     (GLenum
      -> GLenum -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ()))
-> FunPtr
     (GLenum -> GLenum -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum
         -> GLenum -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetObjectLabelEXT")

{-# NOINLINE glGetObjectLabelEXTFunPtr #-}

-- | Usage: @'glLabelObjectEXT' type object length label@


glLabelObjectEXT :: MonadIO m => GLenum -> GLuint -> GLsizei -> Ptr GLchar -> m ()
glLabelObjectEXT :: GLenum -> GLenum -> GLsizei -> Ptr GLchar -> m ()
glLabelObjectEXT = FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLchar -> IO ())
-> GLenum -> GLenum -> GLsizei -> Ptr GLchar -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLchar -> IO ())
-> GLenum -> GLenum -> GLsizei -> Ptr GLchar -> m ()
ffienumuintsizeiPtrcharIOV FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLchar -> IO ())
glLabelObjectEXTFunPtr

glLabelObjectEXTFunPtr :: FunPtr (GLenum -> GLuint -> GLsizei -> Ptr GLchar -> IO ())
glLabelObjectEXTFunPtr :: FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLchar -> IO ())
glLabelObjectEXTFunPtr = IO (FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLchar -> IO ()))
-> FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLchar -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO (FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLchar -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glLabelObjectEXT")

{-# NOINLINE glLabelObjectEXTFunPtr #-}

pattern $bGL_BUFFER_OBJECT_EXT :: a
$mGL_BUFFER_OBJECT_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_BUFFER_OBJECT_EXT = 0x9151

pattern $bGL_PROGRAM_OBJECT_EXT :: a
$mGL_PROGRAM_OBJECT_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PROGRAM_OBJECT_EXT = 0x8B40

pattern $bGL_PROGRAM_PIPELINE_OBJECT_EXT :: a
$mGL_PROGRAM_PIPELINE_OBJECT_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PROGRAM_PIPELINE_OBJECT_EXT = 0x8A4F

pattern $bGL_QUERY_OBJECT_EXT :: a
$mGL_QUERY_OBJECT_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_QUERY_OBJECT_EXT = 0x9153

pattern $bGL_SHADER_OBJECT_EXT :: a
$mGL_SHADER_OBJECT_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SHADER_OBJECT_EXT = 0x8B48

pattern $bGL_VERTEX_ARRAY_OBJECT_EXT :: a
$mGL_VERTEX_ARRAY_OBJECT_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VERTEX_ARRAY_OBJECT_EXT = 0x9154