-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.ANGLE.FramebufferMultisample (
  -- * Extension Support
    gl_ANGLE_framebuffer_multisample

  -- * GL_ANGLE_framebuffer_multisample
  , glRenderbufferStorageMultisampleANGLE
  , pattern GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE
  , pattern GL_MAX_SAMPLES_ANGLE
  , pattern GL_RENDERBUFFER_SAMPLES_ANGLE
) 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/ANGLE/ANGLE_framebuffer_multisample.txt GL_ANGLE_framebuffer_multisample> extension is available.

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

-- | Usage: @'glRenderbufferStorageMultisampleANGLE' target samples internalformat width height@


glRenderbufferStorageMultisampleANGLE :: MonadIO m => GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> m ()
glRenderbufferStorageMultisampleANGLE :: GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> m ()
glRenderbufferStorageMultisampleANGLE = FunPtr (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ())
-> GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ())
-> GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> m ()
ffienumsizeienumsizeisizeiIOV FunPtr (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ())
glRenderbufferStorageMultisampleANGLEFunPtr

glRenderbufferStorageMultisampleANGLEFunPtr :: FunPtr (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ())
glRenderbufferStorageMultisampleANGLEFunPtr :: FunPtr (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ())
glRenderbufferStorageMultisampleANGLEFunPtr = IO
  (FunPtr
     (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ()))
-> FunPtr
     (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glRenderbufferStorageMultisampleANGLE")

{-# NOINLINE glRenderbufferStorageMultisampleANGLEFunPtr #-}

pattern $bGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE :: a
$mGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE = 0x8D56

pattern $bGL_MAX_SAMPLES_ANGLE :: a
$mGL_MAX_SAMPLES_ANGLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SAMPLES_ANGLE = 0x8D57

pattern $bGL_RENDERBUFFER_SAMPLES_ANGLE :: a
$mGL_RENDERBUFFER_SAMPLES_ANGLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_RENDERBUFFER_SAMPLES_ANGLE = 0x8CAB