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

  -- * GL_OES_query_matrix
  , glQueryMatrixxOES
) 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_query_matrix.txt GL_OES_query_matrix> extension is available.

gl_OES_query_matrix :: Bool
gl_OES_query_matrix :: Bool
gl_OES_query_matrix = String -> Set String -> Bool
forall a. Ord a => a -> Set a -> Bool
member String
"GL_OES_query_matrix" Set String
extensions
{-# NOINLINE gl_OES_query_matrix #-}

-- | Usage: @'glQueryMatrixxOES' mantissa exponent@
--
-- The length of @mantissa@ should be @16@.
--
-- The length of @exponent@ should be @16@.


glQueryMatrixxOES :: MonadIO m => Ptr GLfixed -> Ptr GLint -> m GLbitfield
glQueryMatrixxOES :: forall (m :: * -> *).
MonadIO m =>
Ptr GLfixed -> Ptr GLint -> m GLbitfield
glQueryMatrixxOES = FunPtr (Ptr GLfixed -> Ptr GLint -> IO GLbitfield)
-> Ptr GLfixed -> Ptr GLint -> m GLbitfield
forall (m :: * -> *).
MonadIO m =>
FunPtr (Ptr GLfixed -> Ptr GLint -> IO GLbitfield)
-> Ptr GLfixed -> Ptr GLint -> m GLbitfield
ffiPtrfixedPtrintIObitfield FunPtr (Ptr GLfixed -> Ptr GLint -> IO GLbitfield)
glQueryMatrixxOESFunPtr

glQueryMatrixxOESFunPtr :: FunPtr (Ptr GLfixed -> Ptr GLint -> IO GLbitfield)
glQueryMatrixxOESFunPtr :: FunPtr (Ptr GLfixed -> Ptr GLint -> IO GLbitfield)
glQueryMatrixxOESFunPtr = IO (FunPtr (Ptr GLfixed -> Ptr GLint -> IO GLbitfield))
-> FunPtr (Ptr GLfixed -> Ptr GLint -> IO GLbitfield)
forall a. IO a -> a
unsafePerformIO (String -> IO (FunPtr (Ptr GLfixed -> Ptr GLint -> IO GLbitfield))
forall a. String -> IO (FunPtr a)
getProcAddress String
"glQueryMatrixxOES")

{-# NOINLINE glQueryMatrixxOESFunPtr #-}