-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.OES.EGLImage (
  -- * Extension Support
    gl_OES_EGL_image

  -- * GL_OES_EGL_image
  , glEGLImageTargetRenderbufferStorageOES
  , glEGLImageTargetTexture2DOES
) 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/OES/OES_EGL_image.txt GL_OES_EGL_image> extension is available.

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

-- | Usage: @'glEGLImageTargetRenderbufferStorageOES' target image@


glEGLImageTargetRenderbufferStorageOES :: MonadIO m => GLenum -> GLeglImageOES -> m ()
glEGLImageTargetRenderbufferStorageOES :: GLenum -> GLeglImageOES -> m ()
glEGLImageTargetRenderbufferStorageOES = FunPtr (GLenum -> GLeglImageOES -> IO ())
-> GLenum -> GLeglImageOES -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLeglImageOES -> IO ())
-> GLenum -> GLeglImageOES -> m ()
ffienumeglImageOESIOV FunPtr (GLenum -> GLeglImageOES -> IO ())
glEGLImageTargetRenderbufferStorageOESFunPtr

glEGLImageTargetRenderbufferStorageOESFunPtr :: FunPtr (GLenum -> GLeglImageOES -> IO ())
glEGLImageTargetRenderbufferStorageOESFunPtr :: FunPtr (GLenum -> GLeglImageOES -> IO ())
glEGLImageTargetRenderbufferStorageOESFunPtr = IO (FunPtr (GLenum -> GLeglImageOES -> IO ()))
-> FunPtr (GLenum -> GLeglImageOES -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLeglImageOES -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glEGLImageTargetRenderbufferStorageOES")

{-# NOINLINE glEGLImageTargetRenderbufferStorageOESFunPtr #-}

-- | Usage: @'glEGLImageTargetTexture2DOES' target image@


glEGLImageTargetTexture2DOES :: MonadIO m => GLenum -> GLeglImageOES -> m ()
glEGLImageTargetTexture2DOES :: GLenum -> GLeglImageOES -> m ()
glEGLImageTargetTexture2DOES = FunPtr (GLenum -> GLeglImageOES -> IO ())
-> GLenum -> GLeglImageOES -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLeglImageOES -> IO ())
-> GLenum -> GLeglImageOES -> m ()
ffienumeglImageOESIOV FunPtr (GLenum -> GLeglImageOES -> IO ())
glEGLImageTargetTexture2DOESFunPtr

glEGLImageTargetTexture2DOESFunPtr :: FunPtr (GLenum -> GLeglImageOES -> IO ())
glEGLImageTargetTexture2DOESFunPtr :: FunPtr (GLenum -> GLeglImageOES -> IO ())
glEGLImageTargetTexture2DOESFunPtr = IO (FunPtr (GLenum -> GLeglImageOES -> IO ()))
-> FunPtr (GLenum -> GLeglImageOES -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLeglImageOES -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glEGLImageTargetTexture2DOES")

{-# NOINLINE glEGLImageTargetTexture2DOESFunPtr #-}