-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.SGIX.ReferencePlane (
  -- * Extension Support
    gl_SGIX_reference_plane

  -- * GL_SGIX_reference_plane
  , glReferencePlaneSGIX
  , pattern GL_REFERENCE_PLANE_EQUATION_SGIX
  , pattern GL_REFERENCE_PLANE_SGIX
) 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/SGIX/reference_plane.txt GL_SGIX_reference_plane> extension is available.

gl_SGIX_reference_plane :: Bool
gl_SGIX_reference_plane :: Bool
gl_SGIX_reference_plane = String -> Set String -> Bool
forall a. Ord a => a -> Set a -> Bool
member String
"GL_SGIX_reference_plane" Set String
extensions
{-# NOINLINE gl_SGIX_reference_plane #-}

-- | Usage: @'glReferencePlaneSGIX' equation@
--
-- The length of @equation@ should be @4@.


glReferencePlaneSGIX :: MonadIO m => Ptr GLdouble -> m ()
glReferencePlaneSGIX :: forall (m :: * -> *). MonadIO m => Ptr GLdouble -> m ()
glReferencePlaneSGIX = FunPtr (Ptr GLdouble -> IO ()) -> Ptr GLdouble -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (Ptr GLdouble -> IO ()) -> Ptr GLdouble -> m ()
ffiPtrdoubleIOV FunPtr (Ptr GLdouble -> IO ())
glReferencePlaneSGIXFunPtr

glReferencePlaneSGIXFunPtr :: FunPtr (Ptr GLdouble -> IO ())
glReferencePlaneSGIXFunPtr :: FunPtr (Ptr GLdouble -> IO ())
glReferencePlaneSGIXFunPtr = IO (FunPtr (Ptr GLdouble -> IO ()))
-> FunPtr (Ptr GLdouble -> IO ())
forall a. IO a -> a
unsafePerformIO (String -> IO (FunPtr (Ptr GLdouble -> IO ()))
forall a. String -> IO (FunPtr a)
getProcAddress String
"glReferencePlaneSGIX")

{-# NOINLINE glReferencePlaneSGIXFunPtr #-}

pattern GL_REFERENCE_PLANE_EQUATION_SGIX  :: (Eq a, Num a) => a

pattern $mGL_REFERENCE_PLANE_EQUATION_SGIX :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_REFERENCE_PLANE_EQUATION_SGIX :: forall a. (Eq a, Num a) => a
GL_REFERENCE_PLANE_EQUATION_SGIX = 0x817E

pattern GL_REFERENCE_PLANE_SGIX  :: (Eq a, Num a) => a

pattern $mGL_REFERENCE_PLANE_SGIX :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_REFERENCE_PLANE_SGIX :: forall a. (Eq a, Num a) => a
GL_REFERENCE_PLANE_SGIX = 0x817D