{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.NV.CopyBuffer (
gl_NV_copy_buffer
, glCopyBufferSubDataNV
, pattern GL_COPY_READ_BUFFER_NV
, pattern GL_COPY_WRITE_BUFFER_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_copy_buffer :: Bool
gl_NV_copy_buffer :: Bool
gl_NV_copy_buffer = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_NV_copy_buffer" Set [Char]
extensions
{-# NOINLINE gl_NV_copy_buffer #-}
glCopyBufferSubDataNV :: MonadIO m => GLenum -> GLenum -> GLintptr -> GLintptr -> GLsizeiptr -> m ()
glCopyBufferSubDataNV :: GLenum -> GLenum -> GLintptr -> GLintptr -> GLintptr -> m ()
glCopyBufferSubDataNV = FunPtr
(GLenum -> GLenum -> GLintptr -> GLintptr -> GLintptr -> IO ())
-> GLenum -> GLenum -> GLintptr -> GLintptr -> GLintptr -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
(GLenum -> GLenum -> GLintptr -> GLintptr -> GLintptr -> IO ())
-> GLenum -> GLenum -> GLintptr -> GLintptr -> GLintptr -> m ()
ffienumenumintptrintptrsizeiptrIOV FunPtr
(GLenum -> GLenum -> GLintptr -> GLintptr -> GLintptr -> IO ())
glCopyBufferSubDataNVFunPtr
glCopyBufferSubDataNVFunPtr :: FunPtr (GLenum -> GLenum -> GLintptr -> GLintptr -> GLsizeiptr -> IO ())
glCopyBufferSubDataNVFunPtr :: FunPtr
(GLenum -> GLenum -> GLintptr -> GLintptr -> GLintptr -> IO ())
glCopyBufferSubDataNVFunPtr = IO
(FunPtr
(GLenum -> GLenum -> GLintptr -> GLintptr -> GLintptr -> IO ()))
-> FunPtr
(GLenum -> GLenum -> GLintptr -> GLintptr -> GLintptr -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
(FunPtr
(GLenum -> GLenum -> GLintptr -> GLintptr -> GLintptr -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glCopyBufferSubDataNV")
{-# NOINLINE glCopyBufferSubDataNVFunPtr #-}
pattern $bGL_COPY_READ_BUFFER_NV :: a
$mGL_COPY_READ_BUFFER_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COPY_READ_BUFFER_NV = 0x8F36
pattern $bGL_COPY_WRITE_BUFFER_NV :: a
$mGL_COPY_WRITE_BUFFER_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COPY_WRITE_BUFFER_NV = 0x8F37