-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.EXT.PolygonOffsetClamp (
  -- * Extension Support
    gl_EXT_polygon_offset_clamp

  -- * GL_EXT_polygon_offset_clamp
  , glPolygonOffsetClampEXT
  , pattern GL_POLYGON_OFFSET_CLAMP_EXT
) 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/EXT/polygon_offset_clamp.txt GL_EXT_polygon_offset_clamp> extension is available.

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

-- | Usage: @'glPolygonOffsetClampEXT' factor units clamp@


glPolygonOffsetClampEXT :: MonadIO m => GLfloat -> GLfloat -> GLfloat -> m ()
glPolygonOffsetClampEXT :: GLfloat -> GLfloat -> GLfloat -> m ()
glPolygonOffsetClampEXT = FunPtr (GLfloat -> GLfloat -> GLfloat -> IO ())
-> GLfloat -> GLfloat -> GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLfloat -> GLfloat -> GLfloat -> IO ())
-> GLfloat -> GLfloat -> GLfloat -> m ()
ffifloatfloatfloatIOV FunPtr (GLfloat -> GLfloat -> GLfloat -> IO ())
glPolygonOffsetClampEXTFunPtr

glPolygonOffsetClampEXTFunPtr :: FunPtr (GLfloat -> GLfloat -> GLfloat -> IO ())
glPolygonOffsetClampEXTFunPtr :: FunPtr (GLfloat -> GLfloat -> GLfloat -> IO ())
glPolygonOffsetClampEXTFunPtr = IO (FunPtr (GLfloat -> GLfloat -> GLfloat -> IO ()))
-> FunPtr (GLfloat -> GLfloat -> GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLfloat -> GLfloat -> GLfloat -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glPolygonOffsetClampEXT")

{-# NOINLINE glPolygonOffsetClampEXTFunPtr #-}

pattern $bGL_POLYGON_OFFSET_CLAMP_EXT :: a
$mGL_POLYGON_OFFSET_CLAMP_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POLYGON_OFFSET_CLAMP_EXT = 0x8E1B