{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.SGIS.FogFunction (
gl_SGIS_fog_function
, glFogFuncSGIS
, glGetFogFuncSGIS
, pattern GL_FOG_FUNC_POINTS_SGIS
, pattern GL_FOG_FUNC_SGIS
, pattern GL_MAX_FOG_FUNC_POINTS_SGIS
) 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_SGIS_fog_function :: Bool
gl_SGIS_fog_function :: Bool
gl_SGIS_fog_function = String -> Set String -> Bool
forall a. Ord a => a -> Set a -> Bool
member String
"GL_SGIS_fog_function" Set String
extensions
{-# NOINLINE gl_SGIS_fog_function #-}
glFogFuncSGIS :: MonadIO m => GLsizei -> Ptr GLfloat -> m ()
glFogFuncSGIS :: forall (m :: * -> *). MonadIO m => GLsizei -> Ptr GLfloat -> m ()
glFogFuncSGIS = FunPtr (GLsizei -> Ptr GLfloat -> IO ())
-> GLsizei -> Ptr GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLsizei -> Ptr GLfloat -> IO ())
-> GLsizei -> Ptr GLfloat -> m ()
ffisizeiPtrfloatIOV FunPtr (GLsizei -> Ptr GLfloat -> IO ())
glFogFuncSGISFunPtr
glFogFuncSGISFunPtr :: FunPtr (GLsizei -> Ptr GLfloat -> IO ())
glFogFuncSGISFunPtr :: FunPtr (GLsizei -> Ptr GLfloat -> IO ())
glFogFuncSGISFunPtr = IO (FunPtr (GLsizei -> Ptr GLfloat -> IO ()))
-> FunPtr (GLsizei -> Ptr GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO (String -> IO (FunPtr (GLsizei -> Ptr GLfloat -> IO ()))
forall a. String -> IO (FunPtr a)
getProcAddress String
"glFogFuncSGIS")
{-# NOINLINE glFogFuncSGISFunPtr #-}
glGetFogFuncSGIS :: MonadIO m => Ptr GLfloat -> m ()
glGetFogFuncSGIS :: forall (m :: * -> *). MonadIO m => Ptr GLfloat -> m ()
glGetFogFuncSGIS = FunPtr (Ptr GLfloat -> IO ()) -> Ptr GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (Ptr GLfloat -> IO ()) -> Ptr GLfloat -> m ()
ffiPtrfloatIOV FunPtr (Ptr GLfloat -> IO ())
glGetFogFuncSGISFunPtr
glGetFogFuncSGISFunPtr :: FunPtr (Ptr GLfloat -> IO ())
glGetFogFuncSGISFunPtr :: FunPtr (Ptr GLfloat -> IO ())
glGetFogFuncSGISFunPtr = IO (FunPtr (Ptr GLfloat -> IO ())) -> FunPtr (Ptr GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO (String -> IO (FunPtr (Ptr GLfloat -> IO ()))
forall a. String -> IO (FunPtr a)
getProcAddress String
"glGetFogFuncSGIS")
{-# NOINLINE glGetFogFuncSGISFunPtr #-}
pattern GL_FOG_FUNC_POINTS_SGIS :: (Eq a, Num a) => a
pattern $mGL_FOG_FUNC_POINTS_SGIS :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_FOG_FUNC_POINTS_SGIS :: forall a. (Eq a, Num a) => a
GL_FOG_FUNC_POINTS_SGIS = 0x812B
pattern GL_FOG_FUNC_SGIS :: (Eq a, Num a) => a
pattern $mGL_FOG_FUNC_SGIS :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_FOG_FUNC_SGIS :: forall a. (Eq a, Num a) => a
GL_FOG_FUNC_SGIS = 0x812A
pattern GL_MAX_FOG_FUNC_POINTS_SGIS :: (Eq a, Num a) => a
pattern $mGL_MAX_FOG_FUNC_POINTS_SGIS :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_MAX_FOG_FUNC_POINTS_SGIS :: forall a. (Eq a, Num a) => a
GL_MAX_FOG_FUNC_POINTS_SGIS = 0x812C