-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.IMG.MultisampledRenderToTexture (
  -- * Extension Support
    gl_IMG_multisampled_render_to_texture

  -- * GL_IMG_multisampled_render_to_texture
  , glFramebufferTexture2DMultisampleIMG
  , glRenderbufferStorageMultisampleIMG
  , pattern GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG
  , pattern GL_MAX_SAMPLES_IMG
  , pattern GL_RENDERBUFFER_SAMPLES_IMG
  , pattern GL_TEXTURE_SAMPLES_IMG
) 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/IMG/IMG_multisampled_render_to_texture.txt GL_IMG_multisampled_render_to_texture> extension is available.

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

-- | Usage: @'glFramebufferTexture2DMultisampleIMG' target attachment textarget texture level samples@


glFramebufferTexture2DMultisampleIMG :: MonadIO m => GLenum -> GLenum -> GLenum -> GLuint -> GLint -> GLsizei -> m ()
glFramebufferTexture2DMultisampleIMG :: GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> m ()
glFramebufferTexture2DMultisampleIMG = FunPtr
  (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
-> GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
-> GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> m ()
ffienumenumenumuintintsizeiIOV FunPtr
  (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
glFramebufferTexture2DMultisampleIMGFunPtr

glFramebufferTexture2DMultisampleIMGFunPtr :: FunPtr (GLenum -> GLenum -> GLenum -> GLuint -> GLint -> GLsizei -> IO ())
glFramebufferTexture2DMultisampleIMGFunPtr :: FunPtr
  (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
glFramebufferTexture2DMultisampleIMGFunPtr = IO
  (FunPtr
     (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ()))
-> FunPtr
     (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glFramebufferTexture2DMultisampleIMG")

{-# NOINLINE glFramebufferTexture2DMultisampleIMGFunPtr #-}

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


glRenderbufferStorageMultisampleIMG :: MonadIO m => GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> m ()
glRenderbufferStorageMultisampleIMG :: GLenum -> GLint -> GLenum -> GLint -> GLint -> m ()
glRenderbufferStorageMultisampleIMG = FunPtr (GLenum -> GLint -> GLenum -> GLint -> GLint -> IO ())
-> GLenum -> GLint -> GLenum -> GLint -> GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLint -> GLenum -> GLint -> GLint -> IO ())
-> GLenum -> GLint -> GLenum -> GLint -> GLint -> m ()
ffienumsizeienumsizeisizeiIOV FunPtr (GLenum -> GLint -> GLenum -> GLint -> GLint -> IO ())
glRenderbufferStorageMultisampleIMGFunPtr

glRenderbufferStorageMultisampleIMGFunPtr :: FunPtr (GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> IO ())
glRenderbufferStorageMultisampleIMGFunPtr :: FunPtr (GLenum -> GLint -> GLenum -> GLint -> GLint -> IO ())
glRenderbufferStorageMultisampleIMGFunPtr = IO (FunPtr (GLenum -> GLint -> GLenum -> GLint -> GLint -> IO ()))
-> FunPtr (GLenum -> GLint -> GLenum -> GLint -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr (GLenum -> GLint -> GLenum -> GLint -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glRenderbufferStorageMultisampleIMG")

{-# NOINLINE glRenderbufferStorageMultisampleIMGFunPtr #-}

pattern $bGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG :: a
$mGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG = 0x9134

pattern $bGL_MAX_SAMPLES_IMG :: a
$mGL_MAX_SAMPLES_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SAMPLES_IMG = 0x9135

pattern $bGL_RENDERBUFFER_SAMPLES_IMG :: a
$mGL_RENDERBUFFER_SAMPLES_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_RENDERBUFFER_SAMPLES_IMG = 0x9133

pattern $bGL_TEXTURE_SAMPLES_IMG :: a
$mGL_TEXTURE_SAMPLES_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_SAMPLES_IMG = 0x9136