-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.IMG.UserClipPlane (
  -- * Extension Support
    gl_IMG_user_clip_plane

  -- * GL_IMG_user_clip_plane
  , glClipPlanefIMG
  , glClipPlanexIMG
  , pattern GL_CLIP_PLANE0_IMG
  , pattern GL_CLIP_PLANE1_IMG
  , pattern GL_CLIP_PLANE2_IMG
  , pattern GL_CLIP_PLANE3_IMG
  , pattern GL_CLIP_PLANE4_IMG
  , pattern GL_CLIP_PLANE5_IMG
  , pattern GL_MAX_CLIP_PLANES_IMG
) 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://www.khronos.org/registry/gles/extensions/IMG/IMG_user_clip_plane.txt GL_IMG_user_clip_plane> extension is available.

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

-- | Usage: @'glClipPlanefIMG' p eqn@
--
-- The length of @eqn@ should be @4@.


glClipPlanefIMG :: MonadIO m => GLenum -> Ptr GLfloat -> m ()
glClipPlanefIMG :: GLenum -> Ptr GLfloat -> m ()
glClipPlanefIMG = FunPtr (GLenum -> Ptr GLfloat -> IO ())
-> GLenum -> Ptr GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> Ptr GLfloat -> IO ())
-> GLenum -> Ptr GLfloat -> m ()
ffienumPtrfloatIOV FunPtr (GLenum -> Ptr GLfloat -> IO ())
glClipPlanefIMGFunPtr

glClipPlanefIMGFunPtr :: FunPtr (GLenum -> Ptr GLfloat -> IO ())
glClipPlanefIMGFunPtr :: FunPtr (GLenum -> Ptr GLfloat -> IO ())
glClipPlanefIMGFunPtr = IO (FunPtr (GLenum -> Ptr GLfloat -> IO ()))
-> FunPtr (GLenum -> Ptr GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> Ptr GLfloat -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glClipPlanefIMG")

{-# NOINLINE glClipPlanefIMGFunPtr #-}

-- | Usage: @'glClipPlanexIMG' p eqn@
--
-- The length of @eqn@ should be @4@.


glClipPlanexIMG :: MonadIO m => GLenum -> Ptr GLfixed -> m ()
glClipPlanexIMG :: GLenum -> Ptr GLfixed -> m ()
glClipPlanexIMG = FunPtr (GLenum -> Ptr GLfixed -> IO ())
-> GLenum -> Ptr GLfixed -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> Ptr GLfixed -> IO ())
-> GLenum -> Ptr GLfixed -> m ()
ffienumPtrfixedIOV FunPtr (GLenum -> Ptr GLfixed -> IO ())
glClipPlanexIMGFunPtr

glClipPlanexIMGFunPtr :: FunPtr (GLenum -> Ptr GLfixed -> IO ())
glClipPlanexIMGFunPtr :: FunPtr (GLenum -> Ptr GLfixed -> IO ())
glClipPlanexIMGFunPtr = IO (FunPtr (GLenum -> Ptr GLfixed -> IO ()))
-> FunPtr (GLenum -> Ptr GLfixed -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> Ptr GLfixed -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glClipPlanexIMG")

{-# NOINLINE glClipPlanexIMGFunPtr #-}

pattern $bGL_CLIP_PLANE0_IMG :: a
$mGL_CLIP_PLANE0_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CLIP_PLANE0_IMG = 0x3000

pattern $bGL_CLIP_PLANE1_IMG :: a
$mGL_CLIP_PLANE1_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CLIP_PLANE1_IMG = 0x3001

pattern $bGL_CLIP_PLANE2_IMG :: a
$mGL_CLIP_PLANE2_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CLIP_PLANE2_IMG = 0x3002

pattern $bGL_CLIP_PLANE3_IMG :: a
$mGL_CLIP_PLANE3_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CLIP_PLANE3_IMG = 0x3003

pattern $bGL_CLIP_PLANE4_IMG :: a
$mGL_CLIP_PLANE4_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CLIP_PLANE4_IMG = 0x3004

pattern $bGL_CLIP_PLANE5_IMG :: a
$mGL_CLIP_PLANE5_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CLIP_PLANE5_IMG = 0x3005

pattern $bGL_MAX_CLIP_PLANES_IMG :: a
$mGL_MAX_CLIP_PLANES_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_CLIP_PLANES_IMG = 0x0D32