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

  -- * GL_NV_conservative_raster_pre_snap_triangles
  , glConservativeRasterParameteriNV
  , pattern GL_CONSERVATIVE_RASTER_MODE_NV
  , pattern GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV
  , pattern GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_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/conservative_raster_pre_snap_triangles.txt GL_NV_conservative_raster_pre_snap_triangles> extension is available.

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

-- | Usage: @'glConservativeRasterParameteriNV' pname param@


glConservativeRasterParameteriNV :: MonadIO m => GLenum -> GLint -> m ()
glConservativeRasterParameteriNV :: GLenum -> GLint -> m ()
glConservativeRasterParameteriNV = FunPtr (GLenum -> GLint -> IO ()) -> GLenum -> GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLint -> IO ()) -> GLenum -> GLint -> m ()
ffienumintIOV FunPtr (GLenum -> GLint -> IO ())
glConservativeRasterParameteriNVFunPtr

glConservativeRasterParameteriNVFunPtr :: FunPtr (GLenum -> GLint -> IO ())
glConservativeRasterParameteriNVFunPtr :: FunPtr (GLenum -> GLint -> IO ())
glConservativeRasterParameteriNVFunPtr = IO (FunPtr (GLenum -> GLint -> IO ()))
-> FunPtr (GLenum -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glConservativeRasterParameteriNV")

{-# NOINLINE glConservativeRasterParameteriNVFunPtr #-}

pattern $bGL_CONSERVATIVE_RASTER_MODE_NV :: a
$mGL_CONSERVATIVE_RASTER_MODE_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CONSERVATIVE_RASTER_MODE_NV = 0x954D

pattern $bGL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV :: a
$mGL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV = 0x954E

pattern $bGL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV :: a
$mGL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV = 0x954F