{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.EXT.PolygonOffset (
gl_EXT_polygon_offset
, glPolygonOffsetEXT
, pattern GL_POLYGON_OFFSET_BIAS_EXT
, pattern GL_POLYGON_OFFSET_EXT
, pattern GL_POLYGON_OFFSET_FACTOR_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
gl_EXT_polygon_offset :: Bool
gl_EXT_polygon_offset :: Bool
gl_EXT_polygon_offset = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_EXT_polygon_offset" Set [Char]
extensions
{-# NOINLINE gl_EXT_polygon_offset #-}
glPolygonOffsetEXT :: MonadIO m => GLfloat -> GLfloat -> m ()
glPolygonOffsetEXT :: GLfloat -> GLfloat -> m ()
glPolygonOffsetEXT = FunPtr (GLfloat -> GLfloat -> IO ()) -> GLfloat -> GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLfloat -> GLfloat -> IO ()) -> GLfloat -> GLfloat -> m ()
ffifloatfloatIOV FunPtr (GLfloat -> GLfloat -> IO ())
glPolygonOffsetEXTFunPtr
glPolygonOffsetEXTFunPtr :: FunPtr (GLfloat -> GLfloat -> IO ())
glPolygonOffsetEXTFunPtr :: FunPtr (GLfloat -> GLfloat -> IO ())
glPolygonOffsetEXTFunPtr = IO (FunPtr (GLfloat -> GLfloat -> IO ()))
-> FunPtr (GLfloat -> GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLfloat -> GLfloat -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glPolygonOffsetEXT")
{-# NOINLINE glPolygonOffsetEXTFunPtr #-}
pattern $bGL_POLYGON_OFFSET_BIAS_EXT :: a
$mGL_POLYGON_OFFSET_BIAS_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POLYGON_OFFSET_BIAS_EXT = 0x8039
pattern $bGL_POLYGON_OFFSET_EXT :: a
$mGL_POLYGON_OFFSET_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POLYGON_OFFSET_EXT = 0x8037
pattern $bGL_POLYGON_OFFSET_FACTOR_EXT :: a
$mGL_POLYGON_OFFSET_FACTOR_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POLYGON_OFFSET_FACTOR_EXT = 0x8038