-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.APPLE.VertexArrayRange (
  -- * Extension Support
    gl_APPLE_vertex_array_range

  -- * GL_APPLE_vertex_array_range
  , glFlushVertexArrayRangeAPPLE
  , glVertexArrayParameteriAPPLE
  , glVertexArrayRangeAPPLE
  , pattern GL_STORAGE_CACHED_APPLE
  , pattern GL_STORAGE_CLIENT_APPLE
  , pattern GL_STORAGE_SHARED_APPLE
  , pattern GL_VERTEX_ARRAY_RANGE_APPLE
  , pattern GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE
  , pattern GL_VERTEX_ARRAY_RANGE_POINTER_APPLE
  , pattern GL_VERTEX_ARRAY_STORAGE_HINT_APPLE
) 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.Internal.Shared
import Graphics.GL.Types
import System.IO.Unsafe

-- | Checks that the <https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/specs/APPLE/vertex_array_range.txt GL_APPLE_vertex_array_range> extension is available.

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

-- | Usage: @'glFlushVertexArrayRangeAPPLE' length pointer@
--
-- The length of @pointer@ should be @length@.


glFlushVertexArrayRangeAPPLE :: MonadIO m => GLsizei -> Ptr () -> m ()
glFlushVertexArrayRangeAPPLE :: GLsizei -> Ptr () -> m ()
glFlushVertexArrayRangeAPPLE = FunPtr (GLsizei -> Ptr () -> IO ()) -> GLsizei -> Ptr () -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLsizei -> Ptr () -> IO ()) -> GLsizei -> Ptr () -> m ()
ffisizeiPtrVIOV FunPtr (GLsizei -> Ptr () -> IO ())
glFlushVertexArrayRangeAPPLEFunPtr

glFlushVertexArrayRangeAPPLEFunPtr :: FunPtr (GLsizei -> Ptr () -> IO ())
glFlushVertexArrayRangeAPPLEFunPtr :: FunPtr (GLsizei -> Ptr () -> IO ())
glFlushVertexArrayRangeAPPLEFunPtr = IO (FunPtr (GLsizei -> Ptr () -> IO ()))
-> FunPtr (GLsizei -> Ptr () -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLsizei -> Ptr () -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glFlushVertexArrayRangeAPPLE")

{-# NOINLINE glFlushVertexArrayRangeAPPLEFunPtr #-}

-- | Usage: @'glVertexArrayParameteriAPPLE' pname param@
--
-- The parameter @pname@ is a @VertexArrayPNameAPPLE@.


glVertexArrayParameteriAPPLE :: MonadIO m => GLenum -> GLint -> m ()
glVertexArrayParameteriAPPLE :: GLenum -> GLsizei -> m ()
glVertexArrayParameteriAPPLE = FunPtr (GLenum -> GLsizei -> IO ()) -> GLenum -> GLsizei -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLsizei -> IO ()) -> GLenum -> GLsizei -> m ()
ffienumintIOV FunPtr (GLenum -> GLsizei -> IO ())
glVertexArrayParameteriAPPLEFunPtr

glVertexArrayParameteriAPPLEFunPtr :: FunPtr (GLenum -> GLint -> IO ())
glVertexArrayParameteriAPPLEFunPtr :: FunPtr (GLenum -> GLsizei -> IO ())
glVertexArrayParameteriAPPLEFunPtr = IO (FunPtr (GLenum -> GLsizei -> IO ()))
-> FunPtr (GLenum -> GLsizei -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLsizei -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glVertexArrayParameteriAPPLE")

{-# NOINLINE glVertexArrayParameteriAPPLEFunPtr #-}

-- | Usage: @'glVertexArrayRangeAPPLE' length pointer@
--
-- The length of @pointer@ should be @length@.


glVertexArrayRangeAPPLE :: MonadIO m => GLsizei -> Ptr () -> m ()
glVertexArrayRangeAPPLE :: GLsizei -> Ptr () -> m ()
glVertexArrayRangeAPPLE = FunPtr (GLsizei -> Ptr () -> IO ()) -> GLsizei -> Ptr () -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLsizei -> Ptr () -> IO ()) -> GLsizei -> Ptr () -> m ()
ffisizeiPtrVIOV FunPtr (GLsizei -> Ptr () -> IO ())
glVertexArrayRangeAPPLEFunPtr

glVertexArrayRangeAPPLEFunPtr :: FunPtr (GLsizei -> Ptr () -> IO ())
glVertexArrayRangeAPPLEFunPtr :: FunPtr (GLsizei -> Ptr () -> IO ())
glVertexArrayRangeAPPLEFunPtr = IO (FunPtr (GLsizei -> Ptr () -> IO ()))
-> FunPtr (GLsizei -> Ptr () -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLsizei -> Ptr () -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glVertexArrayRangeAPPLE")

{-# NOINLINE glVertexArrayRangeAPPLEFunPtr #-}

pattern $bGL_STORAGE_CLIENT_APPLE :: a
$mGL_STORAGE_CLIENT_APPLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_STORAGE_CLIENT_APPLE = 0x85B4

pattern $bGL_VERTEX_ARRAY_RANGE_APPLE :: a
$mGL_VERTEX_ARRAY_RANGE_APPLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VERTEX_ARRAY_RANGE_APPLE = 0x851D

pattern $bGL_VERTEX_ARRAY_RANGE_LENGTH_APPLE :: a
$mGL_VERTEX_ARRAY_RANGE_LENGTH_APPLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE = 0x851E

pattern $bGL_VERTEX_ARRAY_RANGE_POINTER_APPLE :: a
$mGL_VERTEX_ARRAY_RANGE_POINTER_APPLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VERTEX_ARRAY_RANGE_POINTER_APPLE = 0x8521

pattern $bGL_VERTEX_ARRAY_STORAGE_HINT_APPLE :: a
$mGL_VERTEX_ARRAY_STORAGE_HINT_APPLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VERTEX_ARRAY_STORAGE_HINT_APPLE = 0x851F