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

  -- * GL_NV_framebuffer_multisample
  , glRenderbufferStorageMultisampleNV
  , pattern GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV
  , pattern GL_MAX_SAMPLES_NV
  , pattern GL_RENDERBUFFER_SAMPLES_NV
) 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/NV/NV_framebuffer_multisample.txt GL_NV_framebuffer_multisample> extension is available.

gl_NV_framebuffer_multisample :: Bool
gl_NV_framebuffer_multisample :: Bool
gl_NV_framebuffer_multisample = String -> Set String -> Bool
forall a. Ord a => a -> Set a -> Bool
member String
"GL_NV_framebuffer_multisample" Set String
extensions
{-# NOINLINE gl_NV_framebuffer_multisample #-}

-- | Usage: @'glRenderbufferStorageMultisampleNV' target samples internalformat width height@
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glRenderbufferStorageMultisample'.


glRenderbufferStorageMultisampleNV :: MonadIO m => GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> m ()
glRenderbufferStorageMultisampleNV :: forall (m :: * -> *).
MonadIO m =>
GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> m ()
glRenderbufferStorageMultisampleNV = 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 ())
glRenderbufferStorageMultisampleNVFunPtr

glRenderbufferStorageMultisampleNVFunPtr :: FunPtr (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ())
glRenderbufferStorageMultisampleNVFunPtr :: FunPtr (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ())
glRenderbufferStorageMultisampleNVFunPtr = IO
  (FunPtr
     (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ()))
-> FunPtr
     (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ())
forall a. IO a -> a
unsafePerformIO (String
-> IO
     (FunPtr
        (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ()))
forall a. String -> IO (FunPtr a)
getProcAddress String
"glRenderbufferStorageMultisampleNV")

{-# NOINLINE glRenderbufferStorageMultisampleNVFunPtr #-}

pattern GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV  :: (Eq a, Num a) => a

pattern $mGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV :: forall a. (Eq a, Num a) => a
GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV = 0x8D56

pattern GL_MAX_SAMPLES_NV  :: (Eq a, Num a) => a

pattern $mGL_MAX_SAMPLES_NV :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_MAX_SAMPLES_NV :: forall a. (Eq a, Num a) => a
GL_MAX_SAMPLES_NV = 0x8D57

pattern GL_RENDERBUFFER_SAMPLES_NV  :: (Eq a, Num a) => a

pattern $mGL_RENDERBUFFER_SAMPLES_NV :: forall {r} {a}.
(Eq a, Num a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bGL_RENDERBUFFER_SAMPLES_NV :: forall a. (Eq a, Num a) => a
GL_RENDERBUFFER_SAMPLES_NV = 0x8CAB