-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.ARB.ColorBufferFloat (
  -- * Extension Support
    gl_ARB_color_buffer_float

  -- * GL_ARB_color_buffer_float
  , glClampColorARB
  , pattern GL_CLAMP_FRAGMENT_COLOR_ARB
  , pattern GL_CLAMP_READ_COLOR_ARB
  , pattern GL_CLAMP_VERTEX_COLOR_ARB
  , pattern GL_FIXED_ONLY_ARB
  , pattern GL_RGBA_FLOAT_MODE_ARB
) 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/ARB/color_buffer_float.txt GL_ARB_color_buffer_float> extension is available.

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

-- | Usage: @'glClampColorARB' target clamp@
--
-- The parameter @target@ is a @ClampColorTargetARB@.
--
-- The parameter @clamp@ is a @ClampColorModeARB@.
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glClampColor'.


glClampColorARB :: MonadIO m => GLenum -> GLenum -> m ()
glClampColorARB :: GLenum -> GLenum -> m ()
glClampColorARB = FunPtr (GLenum -> GLenum -> IO ()) -> GLenum -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLenum -> IO ()) -> GLenum -> GLenum -> m ()
ffienumenumIOV FunPtr (GLenum -> GLenum -> IO ())
glClampColorARBFunPtr

glClampColorARBFunPtr :: FunPtr (GLenum -> GLenum -> IO ())
glClampColorARBFunPtr :: FunPtr (GLenum -> GLenum -> IO ())
glClampColorARBFunPtr = IO (FunPtr (GLenum -> GLenum -> IO ()))
-> FunPtr (GLenum -> GLenum -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLenum -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glClampColorARB")

{-# NOINLINE glClampColorARBFunPtr #-}

pattern $bGL_CLAMP_FRAGMENT_COLOR_ARB :: a
$mGL_CLAMP_FRAGMENT_COLOR_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CLAMP_FRAGMENT_COLOR_ARB = 0x891B

pattern $bGL_CLAMP_READ_COLOR_ARB :: a
$mGL_CLAMP_READ_COLOR_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CLAMP_READ_COLOR_ARB = 0x891C

pattern $bGL_CLAMP_VERTEX_COLOR_ARB :: a
$mGL_CLAMP_VERTEX_COLOR_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CLAMP_VERTEX_COLOR_ARB = 0x891A

pattern $bGL_FIXED_ONLY_ARB :: a
$mGL_FIXED_ONLY_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FIXED_ONLY_ARB = 0x891D

pattern $bGL_RGBA_FLOAT_MODE_ARB :: a
$mGL_RGBA_FLOAT_MODE_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_RGBA_FLOAT_MODE_ARB = 0x8820