-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.EXT.CompiledVertexArray (
  -- * Extension Support
    gl_EXT_compiled_vertex_array

  -- * GL_EXT_compiled_vertex_array
  , glLockArraysEXT
  , glUnlockArraysEXT
  , pattern GL_ARRAY_ELEMENT_LOCK_COUNT_EXT
  , pattern GL_ARRAY_ELEMENT_LOCK_FIRST_EXT
) 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://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/specs/EXT/compiled_vertex_array.txt GL_EXT_compiled_vertex_array> extension is available.

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

-- | Usage: @'glLockArraysEXT' first count@


glLockArraysEXT :: MonadIO m => GLint -> GLsizei -> m ()
glLockArraysEXT :: GLint -> GLint -> m ()
glLockArraysEXT = FunPtr (GLint -> GLint -> IO ()) -> GLint -> GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLint -> GLint -> IO ()) -> GLint -> GLint -> m ()
ffiintsizeiIOV FunPtr (GLint -> GLint -> IO ())
glLockArraysEXTFunPtr

glLockArraysEXTFunPtr :: FunPtr (GLint -> GLsizei -> IO ())
glLockArraysEXTFunPtr :: FunPtr (GLint -> GLint -> IO ())
glLockArraysEXTFunPtr = IO (FunPtr (GLint -> GLint -> IO ()))
-> FunPtr (GLint -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLint -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glLockArraysEXT")

{-# NOINLINE glLockArraysEXTFunPtr #-}

-- | Usage: @'glUnlockArraysEXT'@


glUnlockArraysEXT :: MonadIO m => m ()
glUnlockArraysEXT :: m ()
glUnlockArraysEXT = FunPtr (IO ()) -> m ()
forall (m :: * -> *). MonadIO m => FunPtr (IO ()) -> m ()
ffiIOV FunPtr (IO ())
glUnlockArraysEXTFunPtr

glUnlockArraysEXTFunPtr :: FunPtr (IO ())
glUnlockArraysEXTFunPtr :: FunPtr (IO ())
glUnlockArraysEXTFunPtr = IO (FunPtr (IO ())) -> FunPtr (IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glUnlockArraysEXT")

{-# NOINLINE glUnlockArraysEXTFunPtr #-}

pattern $bGL_ARRAY_ELEMENT_LOCK_COUNT_EXT :: a
$mGL_ARRAY_ELEMENT_LOCK_COUNT_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81A9

pattern $bGL_ARRAY_ELEMENT_LOCK_FIRST_EXT :: a
$mGL_ARRAY_ELEMENT_LOCK_FIRST_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_ARRAY_ELEMENT_LOCK_FIRST_EXT = 0x81A8