module Graphics.GL.Ext.OES.GetProgramBinary (
gl_OES_get_program_binary
, glGetProgramBinaryOES
, glProgramBinaryOES
, pattern GL_NUM_PROGRAM_BINARY_FORMATS_OES
, pattern GL_PROGRAM_BINARY_FORMATS_OES
, pattern GL_PROGRAM_BINARY_LENGTH_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_get_program_binary :: Bool
gl_OES_get_program_binary = member "GL_OES_get_program_binary" extensions
glGetProgramBinaryOES :: MonadIO m => GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLenum -> Ptr () -> m ()
glGetProgramBinaryOES = ffiuintsizeiPtrsizeiPtrenumPtrVIOV glGetProgramBinaryOESFunPtr
glGetProgramBinaryOESFunPtr :: FunPtr (GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLenum -> Ptr () -> IO ())
glGetProgramBinaryOESFunPtr = unsafePerformIO (getProcAddress "glGetProgramBinaryOES")
glProgramBinaryOES :: MonadIO m => GLuint -> GLenum -> Ptr () -> GLint -> m ()
glProgramBinaryOES = ffiuintenumPtrVintIOV glProgramBinaryOESFunPtr
glProgramBinaryOESFunPtr :: FunPtr (GLuint -> GLenum -> Ptr () -> GLint -> IO ())
glProgramBinaryOESFunPtr = unsafePerformIO (getProcAddress "glProgramBinaryOES")
pattern GL_NUM_PROGRAM_BINARY_FORMATS_OES = 0x87FE
pattern GL_PROGRAM_BINARY_FORMATS_OES = 0x87FF
pattern GL_PROGRAM_BINARY_LENGTH_OES = 0x8741