-- 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 = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_NV_framebuffer_multisample" Set [Char]
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 :: 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 ([Char]
-> IO
     (FunPtr
        (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glRenderbufferStorageMultisampleNV")

{-# NOINLINE glRenderbufferStorageMultisampleNVFunPtr #-}

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

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

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