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

  -- * GL_NV_viewport_swizzle
  , glViewportSwizzleNV
  , pattern GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV
  , pattern GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV
  , pattern GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV
  , pattern GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV
  , pattern GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV
  , pattern GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV
  , pattern GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV
  , pattern GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV
  , pattern GL_VIEWPORT_SWIZZLE_W_NV
  , pattern GL_VIEWPORT_SWIZZLE_X_NV
  , pattern GL_VIEWPORT_SWIZZLE_Y_NV
  , pattern GL_VIEWPORT_SWIZZLE_Z_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/viewport_swizzle.txt GL_NV_viewport_swizzle> extension is available.

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

-- | Usage: @'glViewportSwizzleNV' index swizzlex swizzley swizzlez swizzlew@


glViewportSwizzleNV :: MonadIO m => GLuint -> GLenum -> GLenum -> GLenum -> GLenum -> m ()
glViewportSwizzleNV :: GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> m ()
glViewportSwizzleNV = FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
-> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
-> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> m ()
ffiuintenumenumenumenumIOV FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
glViewportSwizzleNVFunPtr

glViewportSwizzleNVFunPtr :: FunPtr (GLuint -> GLenum -> GLenum -> GLenum -> GLenum -> IO ())
glViewportSwizzleNVFunPtr :: FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
glViewportSwizzleNVFunPtr = IO
  (FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ()))
-> FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glViewportSwizzleNV")

{-# NOINLINE glViewportSwizzleNVFunPtr #-}

pattern $bGL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV :: a
$mGL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV = 0x9357

pattern $bGL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV :: a
$mGL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV = 0x9351

pattern $bGL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV :: a
$mGL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV = 0x9353

pattern $bGL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV :: a
$mGL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV = 0x9355

pattern $bGL_VIEWPORT_SWIZZLE_POSITIVE_W_NV :: a
$mGL_VIEWPORT_SWIZZLE_POSITIVE_W_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV = 0x9356

pattern $bGL_VIEWPORT_SWIZZLE_POSITIVE_X_NV :: a
$mGL_VIEWPORT_SWIZZLE_POSITIVE_X_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV = 0x9350

pattern $bGL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV :: a
$mGL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV = 0x9352

pattern $bGL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV :: a
$mGL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV = 0x9354

pattern $bGL_VIEWPORT_SWIZZLE_W_NV :: a
$mGL_VIEWPORT_SWIZZLE_W_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_SWIZZLE_W_NV = 0x935B

pattern $bGL_VIEWPORT_SWIZZLE_X_NV :: a
$mGL_VIEWPORT_SWIZZLE_X_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_SWIZZLE_X_NV = 0x9358

pattern $bGL_VIEWPORT_SWIZZLE_Y_NV :: a
$mGL_VIEWPORT_SWIZZLE_Y_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_SWIZZLE_Y_NV = 0x9359

pattern $bGL_VIEWPORT_SWIZZLE_Z_NV :: a
$mGL_VIEWPORT_SWIZZLE_Z_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIEWPORT_SWIZZLE_Z_NV = 0x935A