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

  -- * GL_APPLE_framebuffer_multisample
  , glRenderbufferStorageMultisampleAPPLE
  , glResolveMultisampleFramebufferAPPLE
  , pattern GL_DRAW_FRAMEBUFFER_APPLE
  , pattern GL_DRAW_FRAMEBUFFER_BINDING_APPLE
  , pattern GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE
  , pattern GL_MAX_SAMPLES_APPLE
  , pattern GL_READ_FRAMEBUFFER_APPLE
  , pattern GL_READ_FRAMEBUFFER_BINDING_APPLE
  , pattern GL_RENDERBUFFER_SAMPLES_APPLE
) 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/APPLE/APPLE_framebuffer_multisample.txt GL_APPLE_framebuffer_multisample> extension is available.

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

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


glRenderbufferStorageMultisampleAPPLE :: MonadIO m => GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> m ()
glRenderbufferStorageMultisampleAPPLE :: GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> m ()
glRenderbufferStorageMultisampleAPPLE = 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 ())
glRenderbufferStorageMultisampleAPPLEFunPtr

glRenderbufferStorageMultisampleAPPLEFunPtr :: FunPtr (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ())
glRenderbufferStorageMultisampleAPPLEFunPtr :: FunPtr (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ())
glRenderbufferStorageMultisampleAPPLEFunPtr = 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 "glRenderbufferStorageMultisampleAPPLE")

{-# NOINLINE glRenderbufferStorageMultisampleAPPLEFunPtr #-}

-- | Usage: @'glResolveMultisampleFramebufferAPPLE'@


glResolveMultisampleFramebufferAPPLE :: MonadIO m => m ()
glResolveMultisampleFramebufferAPPLE :: m ()
glResolveMultisampleFramebufferAPPLE = FunPtr (IO ()) -> m ()
forall (m :: * -> *). MonadIO m => FunPtr (IO ()) -> m ()
ffiIOV FunPtr (IO ())
glResolveMultisampleFramebufferAPPLEFunPtr

glResolveMultisampleFramebufferAPPLEFunPtr :: FunPtr (IO ())
glResolveMultisampleFramebufferAPPLEFunPtr :: FunPtr (IO ())
glResolveMultisampleFramebufferAPPLEFunPtr = IO (FunPtr (IO ())) -> FunPtr (IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glResolveMultisampleFramebufferAPPLE")

{-# NOINLINE glResolveMultisampleFramebufferAPPLEFunPtr #-}

pattern $bGL_DRAW_FRAMEBUFFER_APPLE :: a
$mGL_DRAW_FRAMEBUFFER_APPLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_FRAMEBUFFER_APPLE = 0x8CA9

pattern $bGL_DRAW_FRAMEBUFFER_BINDING_APPLE :: a
$mGL_DRAW_FRAMEBUFFER_BINDING_APPLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DRAW_FRAMEBUFFER_BINDING_APPLE = 0x8CA6

pattern $bGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE :: a
$mGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE = 0x8D56

pattern $bGL_MAX_SAMPLES_APPLE :: a
$mGL_MAX_SAMPLES_APPLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SAMPLES_APPLE = 0x8D57

pattern $bGL_READ_FRAMEBUFFER_APPLE :: a
$mGL_READ_FRAMEBUFFER_APPLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_READ_FRAMEBUFFER_APPLE = 0x8CA8

pattern $bGL_READ_FRAMEBUFFER_BINDING_APPLE :: a
$mGL_READ_FRAMEBUFFER_BINDING_APPLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_READ_FRAMEBUFFER_BINDING_APPLE = 0x8CAA

pattern $bGL_RENDERBUFFER_SAMPLES_APPLE :: a
$mGL_RENDERBUFFER_SAMPLES_APPLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_RENDERBUFFER_SAMPLES_APPLE = 0x8CAB