-- This file was automatically generated.
{-# LANGUAGE ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Raw.Extension.SGIS.FogFunction (
  -- * Extension Support
    gl_SGIS_fog_function

  -- * 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.Raw.Internal.FFI
import Graphics.GL.Raw.Internal.Proc
import Graphics.GL.Raw.Types
import System.IO.Unsafe

gl_SGIS_fog_function :: Bool
gl_SGIS_fog_function = member "GL_SGIS_fog_function" extensions

glFogFuncSGIS :: MonadIO m => GLsizei -> Ptr GLfloat -> m ()
glFogFuncSGIS = ffisizeiPtrfloatIOV glFogFuncSGISFunPtr

glFogFuncSGISFunPtr :: FunPtr (GLsizei -> Ptr GLfloat -> IO ())
glFogFuncSGISFunPtr = unsafePerformIO (getProcAddress "glFogFuncSGIS")

{-# NOINLINE glFogFuncSGISFunPtr #-}

glGetFogFuncSGIS :: MonadIO m => Ptr GLfloat -> m ()
glGetFogFuncSGIS = ffiPtrfloatIOV glGetFogFuncSGISFunPtr

glGetFogFuncSGISFunPtr :: FunPtr (Ptr GLfloat -> IO ())
glGetFogFuncSGISFunPtr = unsafePerformIO (getProcAddress "glGetFogFuncSGIS")

{-# NOINLINE glGetFogFuncSGISFunPtr #-}

pattern GL_FOG_FUNC_POINTS_SGIS = 0x812B

pattern GL_FOG_FUNC_SGIS = 0x812A

pattern GL_MAX_FOG_FUNC_POINTS_SGIS = 0x812C