-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.EXT.WindowRectangles (
  -- * Extension Support
    gl_EXT_window_rectangles

  -- * GL_EXT_window_rectangles
  , glWindowRectanglesEXT
  , pattern GL_EXCLUSIVE_EXT
  , pattern GL_INCLUSIVE_EXT
  , pattern GL_MAX_WINDOW_RECTANGLES_EXT
  , pattern GL_NUM_WINDOW_RECTANGLES_EXT
  , pattern GL_WINDOW_RECTANGLE_EXT
  , pattern GL_WINDOW_RECTANGLE_MODE_EXT
) 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/EXT/window_rectangles.txt GL_EXT_window_rectangles> extension is available.

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

-- | Usage: @'glWindowRectanglesEXT' mode count box@
--
-- The length of @box@ should be @COMPSIZE(count)@.


glWindowRectanglesEXT :: MonadIO m => GLenum -> GLsizei -> Ptr GLint -> m ()
glWindowRectanglesEXT :: GLenum -> GLsizei -> Ptr GLsizei -> m ()
glWindowRectanglesEXT = FunPtr (GLenum -> GLsizei -> Ptr GLsizei -> IO ())
-> GLenum -> GLsizei -> Ptr GLsizei -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLsizei -> Ptr GLsizei -> IO ())
-> GLenum -> GLsizei -> Ptr GLsizei -> m ()
ffienumsizeiPtrintIOV FunPtr (GLenum -> GLsizei -> Ptr GLsizei -> IO ())
glWindowRectanglesEXTFunPtr

glWindowRectanglesEXTFunPtr :: FunPtr (GLenum -> GLsizei -> Ptr GLint -> IO ())
glWindowRectanglesEXTFunPtr :: FunPtr (GLenum -> GLsizei -> Ptr GLsizei -> IO ())
glWindowRectanglesEXTFunPtr = IO (FunPtr (GLenum -> GLsizei -> Ptr GLsizei -> IO ()))
-> FunPtr (GLenum -> GLsizei -> Ptr GLsizei -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLsizei -> Ptr GLsizei -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glWindowRectanglesEXT")

{-# NOINLINE glWindowRectanglesEXTFunPtr #-}

pattern $bGL_EXCLUSIVE_EXT :: a
$mGL_EXCLUSIVE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_EXCLUSIVE_EXT = 0x8F11

pattern $bGL_INCLUSIVE_EXT :: a
$mGL_INCLUSIVE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_INCLUSIVE_EXT = 0x8F10

pattern $bGL_MAX_WINDOW_RECTANGLES_EXT :: a
$mGL_MAX_WINDOW_RECTANGLES_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_WINDOW_RECTANGLES_EXT = 0x8F14

pattern $bGL_NUM_WINDOW_RECTANGLES_EXT :: a
$mGL_NUM_WINDOW_RECTANGLES_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_NUM_WINDOW_RECTANGLES_EXT = 0x8F15

pattern $bGL_WINDOW_RECTANGLE_EXT :: a
$mGL_WINDOW_RECTANGLE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_WINDOW_RECTANGLE_EXT = 0x8F12

pattern $bGL_WINDOW_RECTANGLE_MODE_EXT :: a
$mGL_WINDOW_RECTANGLE_MODE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_WINDOW_RECTANGLE_MODE_EXT = 0x8F13