gl-0.9: Complete OpenGL raw bindings
Safe HaskellNone
LanguageHaskell2010

Graphics.GL.Ext.ARB.GetProgramBinary

Synopsis

Extension Support

gl_ARB_get_program_binary :: Bool Source #

Checks that the GL_ARB_get_program_binary extension is available.

GL_ARB_get_program_binary

glGetProgramBinary :: MonadIO m => GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLenum -> Ptr () -> m () Source #

Usage: glGetProgramBinary program bufSize length binaryFormat binary

The length of length should be 1.

The length of binaryFormat should be 1.

The length of binary should be bufSize.

Manual page: https://www.opengl.org/sdk/docs/man/html/glGetProgramBinary.xhtml

glProgramBinary :: MonadIO m => GLuint -> GLenum -> Ptr () -> GLsizei -> m () Source #

Usage: glProgramBinary program binaryFormat binary length

The length of binary should be length.

Manual page: https://www.opengl.org/sdk/docs/man/html/glProgramBinary.xhtml

glProgramParameteri :: MonadIO m => GLuint -> GLenum -> GLint -> m () Source #

Usage: glProgramParameteri program pname value

The parameter pname is a ProgramParameterPName.

pattern GL_PROGRAM_BINARY_FORMATS :: (Eq a, Num a) => a Source #

pattern GL_PROGRAM_BINARY_LENGTH :: (Eq a, Num a) => a Source #