module Graphics.GL.Ext.SGIX.Instruments (
gl_SGIX_instruments
, glGetInstrumentsSGIX
, glInstrumentsBufferSGIX
, glPollInstrumentsSGIX
, glReadInstrumentsSGIX
, glStartInstrumentsSGIX
, glStopInstrumentsSGIX
, pattern GL_INSTRUMENT_BUFFER_POINTER_SGIX
, pattern GL_INSTRUMENT_MEASUREMENTS_SGIX
) 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
gl_SGIX_instruments :: Bool
gl_SGIX_instruments = member "GL_SGIX_instruments" extensions
glGetInstrumentsSGIX :: MonadIO m => m GLint
glGetInstrumentsSGIX = ffiIOint glGetInstrumentsSGIXFunPtr
glGetInstrumentsSGIXFunPtr :: FunPtr (IO GLint)
glGetInstrumentsSGIXFunPtr = unsafePerformIO (getProcAddress "glGetInstrumentsSGIX")
glInstrumentsBufferSGIX :: MonadIO m => GLsizei -> Ptr GLint -> m ()
glInstrumentsBufferSGIX = ffisizeiPtrintIOV glInstrumentsBufferSGIXFunPtr
glInstrumentsBufferSGIXFunPtr :: FunPtr (GLsizei -> Ptr GLint -> IO ())
glInstrumentsBufferSGIXFunPtr = unsafePerformIO (getProcAddress "glInstrumentsBufferSGIX")
glPollInstrumentsSGIX :: MonadIO m => Ptr GLint -> m GLint
glPollInstrumentsSGIX = ffiPtrintIOint glPollInstrumentsSGIXFunPtr
glPollInstrumentsSGIXFunPtr :: FunPtr (Ptr GLint -> IO GLint)
glPollInstrumentsSGIXFunPtr = unsafePerformIO (getProcAddress "glPollInstrumentsSGIX")
glReadInstrumentsSGIX :: MonadIO m => GLint -> m ()
glReadInstrumentsSGIX = ffiintIOV glReadInstrumentsSGIXFunPtr
glReadInstrumentsSGIXFunPtr :: FunPtr (GLint -> IO ())
glReadInstrumentsSGIXFunPtr = unsafePerformIO (getProcAddress "glReadInstrumentsSGIX")
glStartInstrumentsSGIX :: MonadIO m => m ()
glStartInstrumentsSGIX = ffiIOV glStartInstrumentsSGIXFunPtr
glStartInstrumentsSGIXFunPtr :: FunPtr (IO ())
glStartInstrumentsSGIXFunPtr = unsafePerformIO (getProcAddress "glStartInstrumentsSGIX")
glStopInstrumentsSGIX :: MonadIO m => GLint -> m ()
glStopInstrumentsSGIX = ffiintIOV glStopInstrumentsSGIXFunPtr
glStopInstrumentsSGIXFunPtr :: FunPtr (GLint -> IO ())
glStopInstrumentsSGIXFunPtr = unsafePerformIO (getProcAddress "glStopInstrumentsSGIX")
pattern GL_INSTRUMENT_BUFFER_POINTER_SGIX = 0x8180
pattern GL_INSTRUMENT_MEASUREMENTS_SGIX = 0x8181