with-gl-program ( program quot -- )


Vocabulary
opengl.shaders

Inputs
programA gl-program object
quotA quotation with stack effect ( program -- )


Outputs
None

Word description
Enables program for all OpenGL calls made in the dynamic extent of quot. program is left on the top of the stack when quot is called. The fixed-function pipeline is restored at the end of quot.

Definition