glGetProgramBinary

return a binary representation of a program object's compiled and linked executable source

Signature

glGetProgramBinary( GLuint ( program ) , GLsizei ( bufsize ) , GLsizei *( length ) , GLenum *( binaryFormat ) , void *( binary ) )-> void
glGetProgramBinary( program , bufSize , length , binaryFormat , binary )

Parameters

VariablesDescription
program
Specifies the name of a program object whose binary representation to retrieve.
bufSize
Specifies the size of the buffer whose address is given by binary .
length
Specifies the address of a variable to receive the number of bytes written into binary .
binaryFormat
Specifies the address of a variable to receive a token indicating the format of the binary data returned by the GL.
binary
Specifies the address an array into which the GL will return program 's binary representation.