-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.NV.ClipSpaceWScaling (
  -- * Extension Support
    gl_NV_clip_space_w_scaling

  -- * GL_NV_clip_space_w_scaling
  , glViewportPositionWScaleNV
  , pattern GL_VIEWPORT_POSITION_W_SCALE_NV
  , pattern GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV
  , pattern GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV
) 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/NV/clip_space_w_scaling.txt GL_NV_clip_space_w_scaling> extension is available.

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

-- | Usage: @'glViewportPositionWScaleNV' index xcoeff ycoeff@


glViewportPositionWScaleNV :: MonadIO m => GLuint -> GLfloat -> GLfloat -> m ()
glViewportPositionWScaleNV :: GLuint -> GLfloat -> GLfloat -> m ()
glViewportPositionWScaleNV = FunPtr (GLuint -> GLfloat -> GLfloat -> IO ())
-> GLuint -> GLfloat -> GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLfloat -> GLfloat -> IO ())
-> GLuint -> GLfloat -> GLfloat -> m ()
ffiuintfloatfloatIOV FunPtr (GLuint -> GLfloat -> GLfloat -> IO ())
glViewportPositionWScaleNVFunPtr

glViewportPositionWScaleNVFunPtr :: FunPtr (GLuint -> GLfloat -> GLfloat -> IO ())
glViewportPositionWScaleNVFunPtr :: FunPtr (GLuint -> GLfloat -> GLfloat -> IO ())
glViewportPositionWScaleNVFunPtr = IO (FunPtr (GLuint -> GLfloat -> GLfloat -> IO ()))
-> FunPtr (GLuint -> GLfloat -> GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLfloat -> GLfloat -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glViewportPositionWScaleNV")

{-# NOINLINE glViewportPositionWScaleNVFunPtr #-}

pattern $bGL_VIEWPORT_POSITION_W_SCALE_NV :: a
$mGL_VIEWPORT_POSITION_W_SCALE_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_POSITION_W_SCALE_NV = 0x937C

pattern $bGL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV :: a
$mGL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV = 0x937D

pattern $bGL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV :: a
$mGL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV = 0x937E