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

  -- * GL_OES_point_size_array
  , glPointSizePointerOES
  , pattern GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES
  , pattern GL_POINT_SIZE_ARRAY_OES
  , pattern GL_POINT_SIZE_ARRAY_POINTER_OES
  , pattern GL_POINT_SIZE_ARRAY_STRIDE_OES
  , pattern GL_POINT_SIZE_ARRAY_TYPE_OES
) 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://www.khronos.org/registry/gles/extensions/OES/OES_point_size_array.txt GL_OES_point_size_array> extension is available.

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

-- | Usage: @'glPointSizePointerOES' type stride pointer@
--
-- The length of @pointer@ should be @COMPSIZE(type,stride)@.


glPointSizePointerOES :: MonadIO m => GLenum -> GLsizei -> Ptr () -> m ()
glPointSizePointerOES :: GLenum -> GLsizei -> Ptr () -> m ()
glPointSizePointerOES = FunPtr (GLenum -> GLsizei -> Ptr () -> IO ())
-> GLenum -> GLsizei -> Ptr () -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLsizei -> Ptr () -> IO ())
-> GLenum -> GLsizei -> Ptr () -> m ()
ffienumsizeiPtrVIOV FunPtr (GLenum -> GLsizei -> Ptr () -> IO ())
glPointSizePointerOESFunPtr

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

{-# NOINLINE glPointSizePointerOESFunPtr #-}

pattern $bGL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES :: a
$mGL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES = 0x8B9F

pattern $bGL_POINT_SIZE_ARRAY_OES :: a
$mGL_POINT_SIZE_ARRAY_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POINT_SIZE_ARRAY_OES = 0x8B9C

pattern $bGL_POINT_SIZE_ARRAY_POINTER_OES :: a
$mGL_POINT_SIZE_ARRAY_POINTER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POINT_SIZE_ARRAY_POINTER_OES = 0x898C

pattern $bGL_POINT_SIZE_ARRAY_STRIDE_OES :: a
$mGL_POINT_SIZE_ARRAY_STRIDE_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POINT_SIZE_ARRAY_STRIDE_OES = 0x898B

pattern $bGL_POINT_SIZE_ARRAY_TYPE_OES :: a
$mGL_POINT_SIZE_ARRAY_TYPE_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_POINT_SIZE_ARRAY_TYPE_OES = 0x898A