-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.OES.TessellationShader (
  -- * Extension Support
    gl_OES_tessellation_shader

  -- * GL_OES_tessellation_shader
  , glPatchParameteriOES
  , pattern GL_CCW
  , pattern GL_CW
  , pattern GL_EQUAL
  , pattern GL_FRACTIONAL_EVEN_OES
  , pattern GL_FRACTIONAL_ODD_OES
  , pattern GL_ISOLINES_OES
  , pattern GL_IS_PER_PATCH_OES
  , pattern GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_OES
  , pattern GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_OES
  , pattern GL_MAX_PATCH_VERTICES_OES
  , pattern GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_OES
  , pattern GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_OES
  , pattern GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_OES
  , pattern GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_OES
  , pattern GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_OES
  , pattern GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_OES
  , pattern GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_OES
  , pattern GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_OES
  , pattern GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_OES
  , pattern GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_OES
  , pattern GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_OES
  , pattern GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_OES
  , pattern GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_OES
  , pattern GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_OES
  , pattern GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_OES
  , pattern GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_OES
  , pattern GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_OES
  , pattern GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_OES
  , pattern GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_OES
  , pattern GL_MAX_TESS_GEN_LEVEL_OES
  , pattern GL_MAX_TESS_PATCH_COMPONENTS_OES
  , pattern GL_PATCHES_OES
  , pattern GL_PATCH_VERTICES_OES
  , pattern GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED_OES
  , pattern GL_QUADS_OES
  , pattern GL_REFERENCED_BY_TESS_CONTROL_SHADER_OES
  , pattern GL_REFERENCED_BY_TESS_EVALUATION_SHADER_OES
  , pattern GL_TESS_CONTROL_OUTPUT_VERTICES_OES
  , pattern GL_TESS_CONTROL_SHADER_BIT_OES
  , pattern GL_TESS_CONTROL_SHADER_OES
  , pattern GL_TESS_EVALUATION_SHADER_BIT_OES
  , pattern GL_TESS_EVALUATION_SHADER_OES
  , pattern GL_TESS_GEN_MODE_OES
  , pattern GL_TESS_GEN_POINT_MODE_OES
  , pattern GL_TESS_GEN_SPACING_OES
  , pattern GL_TESS_GEN_VERTEX_ORDER_OES
  , pattern GL_TRIANGLES
) 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.Internal.Shared
import Graphics.GL.Types
import System.IO.Unsafe

-- | Checks that the <https://www.khronos.org/registry/gles/extensions/OES/OES_tessellation_shader.txt GL_OES_tessellation_shader> extension is available.

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

-- | Usage: @'glPatchParameteriOES' pname value@
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glPatchParameteri'.


glPatchParameteriOES :: MonadIO m => GLenum -> GLint -> m ()
glPatchParameteriOES :: GLenum -> GLint -> m ()
glPatchParameteriOES = FunPtr (GLenum -> GLint -> IO ()) -> GLenum -> GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLint -> IO ()) -> GLenum -> GLint -> m ()
ffienumintIOV FunPtr (GLenum -> GLint -> IO ())
glPatchParameteriOESFunPtr

glPatchParameteriOESFunPtr :: FunPtr (GLenum -> GLint -> IO ())
glPatchParameteriOESFunPtr :: FunPtr (GLenum -> GLint -> IO ())
glPatchParameteriOESFunPtr = IO (FunPtr (GLenum -> GLint -> IO ()))
-> FunPtr (GLenum -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glPatchParameteriOES")

{-# NOINLINE glPatchParameteriOESFunPtr #-}

pattern $bGL_FRACTIONAL_EVEN_OES :: a
$mGL_FRACTIONAL_EVEN_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FRACTIONAL_EVEN_OES = 0x8E7C

pattern $bGL_FRACTIONAL_ODD_OES :: a
$mGL_FRACTIONAL_ODD_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FRACTIONAL_ODD_OES = 0x8E7B

pattern $bGL_ISOLINES_OES :: a
$mGL_ISOLINES_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_ISOLINES_OES = 0x8E7A

pattern $bGL_IS_PER_PATCH_OES :: a
$mGL_IS_PER_PATCH_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_IS_PER_PATCH_OES = 0x92E7

pattern $bGL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_OES :: a
$mGL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_OES = 0x8E1E

pattern $bGL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_OES :: a
$mGL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_OES = 0x8E1F

pattern $bGL_MAX_PATCH_VERTICES_OES :: a
$mGL_MAX_PATCH_VERTICES_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_PATCH_VERTICES_OES = 0x8E7D

pattern $bGL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_OES :: a
$mGL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_OES = 0x92D3

pattern $bGL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_OES :: a
$mGL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_OES = 0x92CD

pattern $bGL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_OES :: a
$mGL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_OES = 0x90CB

pattern $bGL_MAX_TESS_CONTROL_INPUT_COMPONENTS_OES :: a
$mGL_MAX_TESS_CONTROL_INPUT_COMPONENTS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_OES = 0x886C

pattern $bGL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_OES :: a
$mGL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_OES = 0x8E83

pattern $bGL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_OES :: a
$mGL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_OES = 0x90D8

pattern $bGL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_OES :: a
$mGL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_OES = 0x8E81

pattern $bGL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_OES :: a
$mGL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_OES = 0x8E85

pattern $bGL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_OES :: a
$mGL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_OES = 0x8E89

pattern $bGL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_OES :: a
$mGL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_OES = 0x8E7F

pattern $bGL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_OES :: a
$mGL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_OES = 0x92D4

pattern $bGL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_OES :: a
$mGL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_OES = 0x92CE

pattern $bGL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_OES :: a
$mGL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_OES = 0x90CC

pattern $bGL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_OES :: a
$mGL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_OES = 0x886D

pattern $bGL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_OES :: a
$mGL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_OES = 0x8E86

pattern $bGL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_OES :: a
$mGL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_OES = 0x90D9

pattern $bGL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_OES :: a
$mGL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_OES = 0x8E82

pattern $bGL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_OES :: a
$mGL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_OES = 0x8E8A

pattern $bGL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_OES :: a
$mGL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_OES = 0x8E80

pattern $bGL_MAX_TESS_GEN_LEVEL_OES :: a
$mGL_MAX_TESS_GEN_LEVEL_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_GEN_LEVEL_OES = 0x8E7E

pattern $bGL_MAX_TESS_PATCH_COMPONENTS_OES :: a
$mGL_MAX_TESS_PATCH_COMPONENTS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_TESS_PATCH_COMPONENTS_OES = 0x8E84

pattern $bGL_PATCHES_OES :: a
$mGL_PATCHES_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PATCHES_OES = 0x000E

pattern $bGL_PATCH_VERTICES_OES :: a
$mGL_PATCH_VERTICES_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PATCH_VERTICES_OES = 0x8E72

pattern $bGL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED_OES :: a
$mGL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED_OES = 0x8221

pattern $bGL_QUADS_OES :: a
$mGL_QUADS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_QUADS_OES = 0x0007

pattern $bGL_REFERENCED_BY_TESS_CONTROL_SHADER_OES :: a
$mGL_REFERENCED_BY_TESS_CONTROL_SHADER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_REFERENCED_BY_TESS_CONTROL_SHADER_OES = 0x9307

pattern $bGL_REFERENCED_BY_TESS_EVALUATION_SHADER_OES :: a
$mGL_REFERENCED_BY_TESS_EVALUATION_SHADER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_REFERENCED_BY_TESS_EVALUATION_SHADER_OES = 0x9308

pattern $bGL_TESS_CONTROL_OUTPUT_VERTICES_OES :: a
$mGL_TESS_CONTROL_OUTPUT_VERTICES_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TESS_CONTROL_OUTPUT_VERTICES_OES = 0x8E75

pattern $bGL_TESS_CONTROL_SHADER_BIT_OES :: a
$mGL_TESS_CONTROL_SHADER_BIT_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TESS_CONTROL_SHADER_BIT_OES = 0x00000008

pattern $bGL_TESS_CONTROL_SHADER_OES :: a
$mGL_TESS_CONTROL_SHADER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TESS_CONTROL_SHADER_OES = 0x8E88

pattern $bGL_TESS_EVALUATION_SHADER_BIT_OES :: a
$mGL_TESS_EVALUATION_SHADER_BIT_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TESS_EVALUATION_SHADER_BIT_OES = 0x00000010

pattern $bGL_TESS_EVALUATION_SHADER_OES :: a
$mGL_TESS_EVALUATION_SHADER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TESS_EVALUATION_SHADER_OES = 0x8E87

pattern $bGL_TESS_GEN_MODE_OES :: a
$mGL_TESS_GEN_MODE_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TESS_GEN_MODE_OES = 0x8E76

pattern $bGL_TESS_GEN_POINT_MODE_OES :: a
$mGL_TESS_GEN_POINT_MODE_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TESS_GEN_POINT_MODE_OES = 0x8E79

pattern $bGL_TESS_GEN_SPACING_OES :: a
$mGL_TESS_GEN_SPACING_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TESS_GEN_SPACING_OES = 0x8E77

pattern $bGL_TESS_GEN_VERTEX_ORDER_OES :: a
$mGL_TESS_GEN_VERTEX_ORDER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TESS_GEN_VERTEX_ORDER_OES = 0x8E78