{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.ANGLE.InstancedArrays (
gl_ANGLE_instanced_arrays
, glDrawArraysInstancedANGLE
, glDrawElementsInstancedANGLE
, glVertexAttribDivisorANGLE
, pattern GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE
) 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_ANGLE_instanced_arrays :: Bool
gl_ANGLE_instanced_arrays :: Bool
gl_ANGLE_instanced_arrays = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_ANGLE_instanced_arrays" Set [Char]
extensions
{-# NOINLINE gl_ANGLE_instanced_arrays #-}
glDrawArraysInstancedANGLE :: MonadIO m => GLenum -> GLint -> GLsizei -> GLsizei -> m ()
glDrawArraysInstancedANGLE :: GLenum -> GLint -> GLint -> GLint -> m ()
glDrawArraysInstancedANGLE = FunPtr (GLenum -> GLint -> GLint -> GLint -> IO ())
-> GLenum -> GLint -> GLint -> GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLint -> GLint -> GLint -> IO ())
-> GLenum -> GLint -> GLint -> GLint -> m ()
ffienumintsizeisizeiIOV FunPtr (GLenum -> GLint -> GLint -> GLint -> IO ())
glDrawArraysInstancedANGLEFunPtr
glDrawArraysInstancedANGLEFunPtr :: FunPtr (GLenum -> GLint -> GLsizei -> GLsizei -> IO ())
glDrawArraysInstancedANGLEFunPtr :: FunPtr (GLenum -> GLint -> GLint -> GLint -> IO ())
glDrawArraysInstancedANGLEFunPtr = IO (FunPtr (GLenum -> GLint -> GLint -> GLint -> IO ()))
-> FunPtr (GLenum -> GLint -> GLint -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLint -> GLint -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glDrawArraysInstancedANGLE")
{-# NOINLINE glDrawArraysInstancedANGLEFunPtr #-}
glDrawElementsInstancedANGLE :: MonadIO m => GLenum -> GLsizei -> GLenum -> Ptr () -> GLsizei -> m ()
glDrawElementsInstancedANGLE :: GLenum -> GLint -> GLenum -> Ptr () -> GLint -> m ()
glDrawElementsInstancedANGLE = FunPtr (GLenum -> GLint -> GLenum -> Ptr () -> GLint -> IO ())
-> GLenum -> GLint -> GLenum -> Ptr () -> GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLint -> GLenum -> Ptr () -> GLint -> IO ())
-> GLenum -> GLint -> GLenum -> Ptr () -> GLint -> m ()
ffienumsizeienumPtrVsizeiIOV FunPtr (GLenum -> GLint -> GLenum -> Ptr () -> GLint -> IO ())
glDrawElementsInstancedANGLEFunPtr
glDrawElementsInstancedANGLEFunPtr :: FunPtr (GLenum -> GLsizei -> GLenum -> Ptr () -> GLsizei -> IO ())
glDrawElementsInstancedANGLEFunPtr :: FunPtr (GLenum -> GLint -> GLenum -> Ptr () -> GLint -> IO ())
glDrawElementsInstancedANGLEFunPtr = IO (FunPtr (GLenum -> GLint -> GLenum -> Ptr () -> GLint -> IO ()))
-> FunPtr (GLenum -> GLint -> GLenum -> Ptr () -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
(FunPtr (GLenum -> GLint -> GLenum -> Ptr () -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glDrawElementsInstancedANGLE")
{-# NOINLINE glDrawElementsInstancedANGLEFunPtr #-}
glVertexAttribDivisorANGLE :: MonadIO m => GLuint -> GLuint -> m ()
glVertexAttribDivisorANGLE :: GLenum -> GLenum -> m ()
glVertexAttribDivisorANGLE = FunPtr (GLenum -> GLenum -> IO ()) -> GLenum -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLenum -> IO ()) -> GLenum -> GLenum -> m ()
ffiuintuintIOV FunPtr (GLenum -> GLenum -> IO ())
glVertexAttribDivisorANGLEFunPtr
glVertexAttribDivisorANGLEFunPtr :: FunPtr (GLuint -> GLuint -> IO ())
glVertexAttribDivisorANGLEFunPtr :: FunPtr (GLenum -> GLenum -> IO ())
glVertexAttribDivisorANGLEFunPtr = IO (FunPtr (GLenum -> GLenum -> IO ()))
-> FunPtr (GLenum -> GLenum -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLenum -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glVertexAttribDivisorANGLE")
{-# NOINLINE glVertexAttribDivisorANGLEFunPtr #-}
pattern $bGL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE :: a
$mGL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE