<gl-program> ( shaders -- program )


Vocabulary
opengl.shaders

Inputs
shadersA sequence of gl-shader objects.


Outputs
programa new gl-program


Word description
Creates a new GLSL program object, attaches all the shader objects in the shaders sequence, and attempts to link them. The returned object can be checked for validity by check-gl-program or gl-program-ok?. Errors and warnings generated by the GLSL linker will be collected in the info log, available from gl-program-info-log. When the program object and its attached shaders are no longer needed, it should be deleted using delete-gl-program.

Definition