module Graphics.GL.Ext.OES.VertexArrayObject (
gl_OES_vertex_array_object
, glBindVertexArrayOES
, glDeleteVertexArraysOES
, glGenVertexArraysOES
, glIsVertexArrayOES
, pattern GL_VERTEX_ARRAY_BINDING_OES
) 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
gl_OES_vertex_array_object :: Bool
gl_OES_vertex_array_object = member "GL_OES_vertex_array_object" extensions
glBindVertexArrayOES :: MonadIO m => GLuint -> m ()
glBindVertexArrayOES = ffiuintIOV glBindVertexArrayOESFunPtr
glBindVertexArrayOESFunPtr :: FunPtr (GLuint -> IO ())
glBindVertexArrayOESFunPtr = unsafePerformIO (getProcAddress "glBindVertexArrayOES")
glDeleteVertexArraysOES :: MonadIO m => GLsizei -> Ptr GLuint -> m ()
glDeleteVertexArraysOES = ffisizeiPtruintIOV glDeleteVertexArraysOESFunPtr
glDeleteVertexArraysOESFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> IO ())
glDeleteVertexArraysOESFunPtr = unsafePerformIO (getProcAddress "glDeleteVertexArraysOES")
glGenVertexArraysOES :: MonadIO m => GLsizei -> Ptr GLuint -> m ()
glGenVertexArraysOES = ffisizeiPtruintIOV glGenVertexArraysOESFunPtr
glGenVertexArraysOESFunPtr :: FunPtr (GLsizei -> Ptr GLuint -> IO ())
glGenVertexArraysOESFunPtr = unsafePerformIO (getProcAddress "glGenVertexArraysOES")
glIsVertexArrayOES :: MonadIO m => GLuint -> m GLboolean
glIsVertexArrayOES = ffiuintIOboolean glIsVertexArrayOESFunPtr
glIsVertexArrayOESFunPtr :: FunPtr (GLuint -> IO GLboolean)
glIsVertexArrayOESFunPtr = unsafePerformIO (getProcAddress "glIsVertexArrayOES")
pattern GL_VERTEX_ARRAY_BINDING_OES = 0x85B5