-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.NV.PixelDataRange (
  -- * Extension Support
    gl_NV_pixel_data_range

  -- * GL_NV_pixel_data_range
  , glFlushPixelDataRangeNV
  , glPixelDataRangeNV
  , pattern GL_READ_PIXEL_DATA_RANGE_LENGTH_NV
  , pattern GL_READ_PIXEL_DATA_RANGE_NV
  , pattern GL_READ_PIXEL_DATA_RANGE_POINTER_NV
  , pattern GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV
  , pattern GL_WRITE_PIXEL_DATA_RANGE_NV
  , pattern GL_WRITE_PIXEL_DATA_RANGE_POINTER_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

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

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

-- | Usage: @'glFlushPixelDataRangeNV' target@
--
-- The parameter @target@ is a @PixelDataRangeTargetNV@.


glFlushPixelDataRangeNV :: MonadIO m => GLenum -> m ()
glFlushPixelDataRangeNV :: GLenum -> m ()
glFlushPixelDataRangeNV = FunPtr (GLenum -> IO ()) -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> IO ()) -> GLenum -> m ()
ffienumIOV FunPtr (GLenum -> IO ())
glFlushPixelDataRangeNVFunPtr

glFlushPixelDataRangeNVFunPtr :: FunPtr (GLenum -> IO ())
glFlushPixelDataRangeNVFunPtr :: FunPtr (GLenum -> IO ())
glFlushPixelDataRangeNVFunPtr = IO (FunPtr (GLenum -> IO ())) -> FunPtr (GLenum -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glFlushPixelDataRangeNV")

{-# NOINLINE glFlushPixelDataRangeNVFunPtr #-}

-- | Usage: @'glPixelDataRangeNV' target length pointer@
--
-- The parameter @target@ is a @PixelDataRangeTargetNV@.
--
-- The length of @pointer@ should be @length@.


glPixelDataRangeNV :: MonadIO m => GLenum -> GLsizei -> Ptr () -> m ()
glPixelDataRangeNV :: GLenum -> GLsizei -> Ptr () -> m ()
glPixelDataRangeNV = FunPtr (GLenum -> GLsizei -> Ptr () -> IO ())
-> GLenum -> GLsizei -> Ptr () -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLsizei -> Ptr () -> IO ())
-> GLenum -> GLsizei -> Ptr () -> m ()
ffienumsizeiPtrVIOV FunPtr (GLenum -> GLsizei -> Ptr () -> IO ())
glPixelDataRangeNVFunPtr

glPixelDataRangeNVFunPtr :: FunPtr (GLenum -> GLsizei -> Ptr () -> IO ())
glPixelDataRangeNVFunPtr :: FunPtr (GLenum -> GLsizei -> Ptr () -> IO ())
glPixelDataRangeNVFunPtr = IO (FunPtr (GLenum -> GLsizei -> Ptr () -> IO ()))
-> FunPtr (GLenum -> GLsizei -> Ptr () -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLsizei -> Ptr () -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glPixelDataRangeNV")

{-# NOINLINE glPixelDataRangeNVFunPtr #-}

pattern $bGL_READ_PIXEL_DATA_RANGE_LENGTH_NV :: a
$mGL_READ_PIXEL_DATA_RANGE_LENGTH_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_READ_PIXEL_DATA_RANGE_LENGTH_NV = 0x887B

pattern $bGL_READ_PIXEL_DATA_RANGE_NV :: a
$mGL_READ_PIXEL_DATA_RANGE_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_READ_PIXEL_DATA_RANGE_NV = 0x8879

pattern $bGL_READ_PIXEL_DATA_RANGE_POINTER_NV :: a
$mGL_READ_PIXEL_DATA_RANGE_POINTER_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887D

pattern $bGL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV :: a
$mGL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV = 0x887A

pattern $bGL_WRITE_PIXEL_DATA_RANGE_NV :: a
$mGL_WRITE_PIXEL_DATA_RANGE_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_WRITE_PIXEL_DATA_RANGE_NV = 0x8878

pattern $bGL_WRITE_PIXEL_DATA_RANGE_POINTER_NV :: a
$mGL_WRITE_PIXEL_DATA_RANGE_POINTER_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887C