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

  -- * GL_QCOM_driver_control
  , glDisableDriverControlQCOM
  , glEnableDriverControlQCOM
  , glGetDriverControlStringQCOM
  , glGetDriverControlsQCOM
) 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_driver_control.txt GL_QCOM_driver_control> extension is available.

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

-- | Usage: @'glDisableDriverControlQCOM' driverControl@


glDisableDriverControlQCOM :: MonadIO m => GLuint -> m ()
glDisableDriverControlQCOM :: GLuint -> m ()
glDisableDriverControlQCOM = FunPtr (GLuint -> IO ()) -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> IO ()) -> GLuint -> m ()
ffiuintIOV FunPtr (GLuint -> IO ())
glDisableDriverControlQCOMFunPtr

glDisableDriverControlQCOMFunPtr :: FunPtr (GLuint -> IO ())
glDisableDriverControlQCOMFunPtr :: FunPtr (GLuint -> IO ())
glDisableDriverControlQCOMFunPtr = IO (FunPtr (GLuint -> IO ())) -> FunPtr (GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glDisableDriverControlQCOM")

{-# NOINLINE glDisableDriverControlQCOMFunPtr #-}

-- | Usage: @'glEnableDriverControlQCOM' driverControl@


glEnableDriverControlQCOM :: MonadIO m => GLuint -> m ()
glEnableDriverControlQCOM :: GLuint -> m ()
glEnableDriverControlQCOM = FunPtr (GLuint -> IO ()) -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> IO ()) -> GLuint -> m ()
ffiuintIOV FunPtr (GLuint -> IO ())
glEnableDriverControlQCOMFunPtr

glEnableDriverControlQCOMFunPtr :: FunPtr (GLuint -> IO ())
glEnableDriverControlQCOMFunPtr :: FunPtr (GLuint -> IO ())
glEnableDriverControlQCOMFunPtr = IO (FunPtr (GLuint -> IO ())) -> FunPtr (GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glEnableDriverControlQCOM")

{-# NOINLINE glEnableDriverControlQCOMFunPtr #-}

-- | Usage: @'glGetDriverControlStringQCOM' driverControl bufSize length driverControlString@
--
-- The length of @driverControlString@ should be @bufSize@.


glGetDriverControlStringQCOM :: MonadIO m => GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m ()
glGetDriverControlStringQCOM :: GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m ()
glGetDriverControlStringQCOM = FunPtr (GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
-> GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
-> GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m ()
ffiuintsizeiPtrsizeiPtrcharIOV FunPtr (GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
glGetDriverControlStringQCOMFunPtr

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

{-# NOINLINE glGetDriverControlStringQCOMFunPtr #-}

-- | Usage: @'glGetDriverControlsQCOM' num size driverControls@
--
-- The length of @driverControls@ should be @size@.


glGetDriverControlsQCOM :: MonadIO m => Ptr GLint -> GLsizei -> Ptr GLuint -> m ()
glGetDriverControlsQCOM :: Ptr GLsizei -> GLsizei -> Ptr GLuint -> m ()
glGetDriverControlsQCOM = FunPtr (Ptr GLsizei -> GLsizei -> Ptr GLuint -> IO ())
-> Ptr GLsizei -> GLsizei -> Ptr GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (Ptr GLsizei -> GLsizei -> Ptr GLuint -> IO ())
-> Ptr GLsizei -> GLsizei -> Ptr GLuint -> m ()
ffiPtrintsizeiPtruintIOV FunPtr (Ptr GLsizei -> GLsizei -> Ptr GLuint -> IO ())
glGetDriverControlsQCOMFunPtr

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

{-# NOINLINE glGetDriverControlsQCOMFunPtr #-}