-- 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 = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_OES_query_matrix" Set [Char]
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 :: 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 ([Char] -> IO (FunPtr (Ptr GLfixed -> Ptr GLint -> IO GLbitfield))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glQueryMatrixxOES")

{-# NOINLINE glQueryMatrixxOESFunPtr #-}