module Graphics.GL.Ext.NV.CommandList (
gl_NV_command_list
, glCallCommandListNV
, glCommandListSegmentsNV
, glCompileCommandListNV
, glCreateCommandListsNV
, glCreateStatesNV
, glDeleteCommandListsNV
, glDeleteStatesNV
, glDrawCommandsAddressNV
, glDrawCommandsNV
, glDrawCommandsStatesAddressNV
, glDrawCommandsStatesNV
, glGetCommandHeaderNV
, glGetStageIndexNV
, glIsCommandListNV
, glIsStateNV
, glListDrawCommandsStatesClientNV
, glStateCaptureNV
, pattern GL_ALPHA_REF_COMMAND_NV
, pattern GL_ATTRIBUTE_ADDRESS_COMMAND_NV
, pattern GL_BLEND_COLOR_COMMAND_NV
, pattern GL_DRAW_ARRAYS_COMMAND_NV
, pattern GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV
, pattern GL_DRAW_ARRAYS_STRIP_COMMAND_NV
, pattern GL_DRAW_ELEMENTS_COMMAND_NV
, pattern GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV
, pattern GL_DRAW_ELEMENTS_STRIP_COMMAND_NV
, pattern GL_ELEMENT_ADDRESS_COMMAND_NV
, pattern GL_FRONT_FACE_COMMAND_NV
, pattern GL_LINE_WIDTH_COMMAND_NV
, pattern GL_NOP_COMMAND_NV
, pattern GL_POLYGON_OFFSET_COMMAND_NV
, pattern GL_SCISSOR_COMMAND_NV
, pattern GL_STENCIL_REF_COMMAND_NV
, pattern GL_TERMINATE_SEQUENCE_COMMAND_NV
, pattern GL_UNIFORM_ADDRESS_COMMAND_NV
, pattern GL_VIEWPORT_COMMAND_NV
) 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_NV_command_list :: Bool
gl_NV_command_list = member "GL_NV_command_list" extensions
glCallCommandListNV :: MonadIO m => GLuint -> m ()
glCallCommandListNV = ffiuintIOV glCallCommandListNVFunPtr
glCallCommandListNVFunPtr :: FunPtr (GLuint -> IO ())
glCallCommandListNVFunPtr = unsafePerformIO (getProcAddress "glCallCommandListNV")
glCommandListSegmentsNV :: MonadIO m => GLuint -> GLuint -> m ()
glCommandListSegmentsNV = ffiuintuintIOV glCommandListSegmentsNVFunPtr
glCommandListSegmentsNVFunPtr :: FunPtr (GLuint -> GLuint -> IO ())
glCommandListSegmentsNVFunPtr = unsafePerformIO (getProcAddress "glCommandListSegmentsNV")
glCompileCommandListNV :: MonadIO m => GLuint -> m ()
glCompileCommandListNV = ffiuintIOV glCompileCommandListNVFunPtr
glCompileCommandListNVFunPtr :: FunPtr (GLuint -> IO ())
glCompileCommandListNVFunPtr = unsafePerformIO (getProcAddress "glCompileCommandListNV")
glCreateCommandListsNV :: MonadIO m => GLsizei -> Ptr GLuint -> m ()
glCreateCommandListsNV = ffisizeiPtruintIOV glCreateCommandListsNVFunPtr
glCreateCommandListsNVFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> IO ())
glCreateCommandListsNVFunPtr = unsafePerformIO (getProcAddress "glCreateCommandListsNV")
glCreateStatesNV :: MonadIO m => GLsizei -> Ptr GLuint -> m ()
glCreateStatesNV = ffisizeiPtruintIOV glCreateStatesNVFunPtr
glCreateStatesNVFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> IO ())
glCreateStatesNVFunPtr = unsafePerformIO (getProcAddress "glCreateStatesNV")
glDeleteCommandListsNV :: MonadIO m => GLsizei -> Ptr GLuint -> m ()
glDeleteCommandListsNV = ffisizeiPtruintIOV glDeleteCommandListsNVFunPtr
glDeleteCommandListsNVFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> IO ())
glDeleteCommandListsNVFunPtr = unsafePerformIO (getProcAddress "glDeleteCommandListsNV")
glDeleteStatesNV :: MonadIO m => GLsizei -> Ptr GLuint -> m ()
glDeleteStatesNV = ffisizeiPtruintIOV glDeleteStatesNVFunPtr
glDeleteStatesNVFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> IO ())
glDeleteStatesNVFunPtr = unsafePerformIO (getProcAddress "glDeleteStatesNV")
glDrawCommandsAddressNV :: MonadIO m => GLenum -> Ptr GLuint64 -> Ptr GLsizei -> GLuint -> m ()
glDrawCommandsAddressNV = ffienumPtruint64PtrsizeiuintIOV glDrawCommandsAddressNVFunPtr
glDrawCommandsAddressNVFunPtr :: FunPtr (GLenum -> Ptr GLuint64 -> Ptr GLsizei -> GLuint -> IO ())
glDrawCommandsAddressNVFunPtr = unsafePerformIO (getProcAddress "glDrawCommandsAddressNV")
glDrawCommandsNV :: MonadIO m => GLenum -> GLuint -> Ptr GLintptr -> Ptr GLsizei -> GLuint -> m ()
glDrawCommandsNV = ffienumuintPtrintptrPtrsizeiuintIOV glDrawCommandsNVFunPtr
glDrawCommandsNVFunPtr :: FunPtr (GLenum -> GLuint -> Ptr GLintptr -> Ptr GLsizei -> GLuint -> IO ())
glDrawCommandsNVFunPtr = unsafePerformIO (getProcAddress "glDrawCommandsNV")
glDrawCommandsStatesAddressNV :: MonadIO m => Ptr GLuint64 -> Ptr GLsizei -> Ptr GLuint -> Ptr GLuint -> GLuint -> m ()
glDrawCommandsStatesAddressNV = ffiPtruint64PtrsizeiPtruintPtruintuintIOV glDrawCommandsStatesAddressNVFunPtr
glDrawCommandsStatesAddressNVFunPtr :: FunPtr (Ptr GLuint64 -> Ptr GLsizei -> Ptr GLuint -> Ptr GLuint -> GLuint -> IO ())
glDrawCommandsStatesAddressNVFunPtr = unsafePerformIO (getProcAddress "glDrawCommandsStatesAddressNV")
glDrawCommandsStatesNV :: MonadIO m => GLuint -> Ptr GLintptr -> Ptr GLsizei -> Ptr GLuint -> Ptr GLuint -> GLuint -> m ()
glDrawCommandsStatesNV = ffiuintPtrintptrPtrsizeiPtruintPtruintuintIOV glDrawCommandsStatesNVFunPtr
glDrawCommandsStatesNVFunPtr :: FunPtr (GLuint -> Ptr GLintptr -> Ptr GLsizei -> Ptr GLuint -> Ptr GLuint -> GLuint -> IO ())
glDrawCommandsStatesNVFunPtr = unsafePerformIO (getProcAddress "glDrawCommandsStatesNV")
glGetCommandHeaderNV :: MonadIO m => GLenum -> GLuint -> m GLuint
glGetCommandHeaderNV = ffienumuintIOuint glGetCommandHeaderNVFunPtr
glGetCommandHeaderNVFunPtr :: FunPtr (GLenum -> GLuint -> IO GLuint)
glGetCommandHeaderNVFunPtr = unsafePerformIO (getProcAddress "glGetCommandHeaderNV")
glGetStageIndexNV :: MonadIO m => GLenum -> m GLushort
glGetStageIndexNV = ffienumIOushort glGetStageIndexNVFunPtr
glGetStageIndexNVFunPtr :: FunPtr (GLenum -> IO GLushort)
glGetStageIndexNVFunPtr = unsafePerformIO (getProcAddress "glGetStageIndexNV")
glIsCommandListNV :: MonadIO m => GLuint -> m GLboolean
glIsCommandListNV = ffiuintIOboolean glIsCommandListNVFunPtr
glIsCommandListNVFunPtr :: FunPtr (GLuint -> IO GLboolean)
glIsCommandListNVFunPtr = unsafePerformIO (getProcAddress "glIsCommandListNV")
glIsStateNV :: MonadIO m => GLuint -> m GLboolean
glIsStateNV = ffiuintIOboolean glIsStateNVFunPtr
glIsStateNVFunPtr :: FunPtr (GLuint -> IO GLboolean)
glIsStateNVFunPtr = unsafePerformIO (getProcAddress "glIsStateNV")
glListDrawCommandsStatesClientNV :: MonadIO m => GLuint -> GLuint -> Ptr (Ptr ()) -> Ptr GLsizei -> Ptr GLuint -> Ptr GLuint -> GLuint -> m ()
glListDrawCommandsStatesClientNV = ffiuintuintPtrPtrVPtrsizeiPtruintPtruintuintIOV glListDrawCommandsStatesClientNVFunPtr
glListDrawCommandsStatesClientNVFunPtr :: FunPtr (GLuint -> GLuint -> Ptr (Ptr ()) -> Ptr GLsizei -> Ptr GLuint -> Ptr GLuint -> GLuint -> IO ())
glListDrawCommandsStatesClientNVFunPtr = unsafePerformIO (getProcAddress "glListDrawCommandsStatesClientNV")
glStateCaptureNV :: MonadIO m => GLuint -> GLenum -> m ()
glStateCaptureNV = ffiuintenumIOV glStateCaptureNVFunPtr
glStateCaptureNVFunPtr :: FunPtr (GLuint -> GLenum -> IO ())
glStateCaptureNVFunPtr = unsafePerformIO (getProcAddress "glStateCaptureNV")
pattern GL_ALPHA_REF_COMMAND_NV = 0x000F
pattern GL_ATTRIBUTE_ADDRESS_COMMAND_NV = 0x0009
pattern GL_BLEND_COLOR_COMMAND_NV = 0x000B
pattern GL_DRAW_ARRAYS_COMMAND_NV = 0x0003
pattern GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV = 0x0007
pattern GL_DRAW_ARRAYS_STRIP_COMMAND_NV = 0x0005
pattern GL_DRAW_ELEMENTS_COMMAND_NV = 0x0002
pattern GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV = 0x0006
pattern GL_DRAW_ELEMENTS_STRIP_COMMAND_NV = 0x0004
pattern GL_ELEMENT_ADDRESS_COMMAND_NV = 0x0008
pattern GL_FRONT_FACE_COMMAND_NV = 0x0012
pattern GL_LINE_WIDTH_COMMAND_NV = 0x000D
pattern GL_NOP_COMMAND_NV = 0x0001
pattern GL_POLYGON_OFFSET_COMMAND_NV = 0x000E
pattern GL_SCISSOR_COMMAND_NV = 0x0011
pattern GL_STENCIL_REF_COMMAND_NV = 0x000C
pattern GL_TERMINATE_SEQUENCE_COMMAND_NV = 0x0000
pattern GL_UNIFORM_ADDRESS_COMMAND_NV = 0x000A
pattern GL_VIEWPORT_COMMAND_NV = 0x0010