-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.QCOM.ExtendedGet2 (
  -- * Extension Support
    gl_QCOM_extended_get2

  -- * GL_QCOM_extended_get2
  , glExtGetProgramBinarySourceQCOM
  , glExtGetProgramsQCOM
  , glExtGetShadersQCOM
  , glExtIsProgramBinaryQCOM
) 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/QCOM/QCOM_extended_get2.txt GL_QCOM_extended_get2> extension is available.

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

-- | Usage: @'glExtGetProgramBinarySourceQCOM' program shadertype source length@


glExtGetProgramBinarySourceQCOM :: MonadIO m => GLuint -> GLenum -> Ptr GLchar -> Ptr GLint -> m ()
glExtGetProgramBinarySourceQCOM :: GLuint -> GLuint -> Ptr GLchar -> Ptr GLint -> m ()
glExtGetProgramBinarySourceQCOM = FunPtr (GLuint -> GLuint -> Ptr GLchar -> Ptr GLint -> IO ())
-> GLuint -> GLuint -> Ptr GLchar -> Ptr GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> Ptr GLchar -> Ptr GLint -> IO ())
-> GLuint -> GLuint -> Ptr GLchar -> Ptr GLint -> m ()
ffiuintenumPtrcharPtrintIOV FunPtr (GLuint -> GLuint -> Ptr GLchar -> Ptr GLint -> IO ())
glExtGetProgramBinarySourceQCOMFunPtr

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

{-# NOINLINE glExtGetProgramBinarySourceQCOMFunPtr #-}

-- | Usage: @'glExtGetProgramsQCOM' programs maxPrograms numPrograms@
--
-- The length of @programs@ should be @maxPrograms@.
--
-- The length of @numPrograms@ should be @1@.


glExtGetProgramsQCOM :: MonadIO m => Ptr GLuint -> GLint -> Ptr GLint -> m ()
glExtGetProgramsQCOM :: Ptr GLuint -> GLint -> Ptr GLint -> m ()
glExtGetProgramsQCOM = FunPtr (Ptr GLuint -> GLint -> Ptr GLint -> IO ())
-> Ptr GLuint -> GLint -> Ptr GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (Ptr GLuint -> GLint -> Ptr GLint -> IO ())
-> Ptr GLuint -> GLint -> Ptr GLint -> m ()
ffiPtruintintPtrintIOV FunPtr (Ptr GLuint -> GLint -> Ptr GLint -> IO ())
glExtGetProgramsQCOMFunPtr

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

{-# NOINLINE glExtGetProgramsQCOMFunPtr #-}

-- | Usage: @'glExtGetShadersQCOM' shaders maxShaders numShaders@
--
-- The length of @shaders@ should be @maxShaders@.
--
-- The length of @numShaders@ should be @1@.


glExtGetShadersQCOM :: MonadIO m => Ptr GLuint -> GLint -> Ptr GLint -> m ()
glExtGetShadersQCOM :: Ptr GLuint -> GLint -> Ptr GLint -> m ()
glExtGetShadersQCOM = FunPtr (Ptr GLuint -> GLint -> Ptr GLint -> IO ())
-> Ptr GLuint -> GLint -> Ptr GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (Ptr GLuint -> GLint -> Ptr GLint -> IO ())
-> Ptr GLuint -> GLint -> Ptr GLint -> m ()
ffiPtruintintPtrintIOV FunPtr (Ptr GLuint -> GLint -> Ptr GLint -> IO ())
glExtGetShadersQCOMFunPtr

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

{-# NOINLINE glExtGetShadersQCOMFunPtr #-}

-- | Usage: @'glExtIsProgramBinaryQCOM' program@


glExtIsProgramBinaryQCOM :: MonadIO m => GLuint -> m GLboolean
glExtIsProgramBinaryQCOM :: GLuint -> m GLboolean
glExtIsProgramBinaryQCOM = FunPtr (GLuint -> IO GLboolean) -> GLuint -> m GLboolean
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> IO GLboolean) -> GLuint -> m GLboolean
ffiuintIOboolean FunPtr (GLuint -> IO GLboolean)
glExtIsProgramBinaryQCOMFunPtr

glExtIsProgramBinaryQCOMFunPtr :: FunPtr (GLuint -> IO GLboolean)
glExtIsProgramBinaryQCOMFunPtr :: FunPtr (GLuint -> IO GLboolean)
glExtIsProgramBinaryQCOMFunPtr = IO (FunPtr (GLuint -> IO GLboolean))
-> FunPtr (GLuint -> IO GLboolean)
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> IO GLboolean))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glExtIsProgramBinaryQCOM")

{-# NOINLINE glExtIsProgramBinaryQCOMFunPtr #-}