<simple-gl-program> ( vertex-shader-source fragment-shader-source -- program )


Vocabulary
opengl.shaders

Inputs
vertex-shader-sourceA string containing GLSL vertex shader source
fragment-shader-sourceA string containing GLSL fragment shader source


Outputs
programa new gl-program


Word description
Wrapper for <gl-program> for the simple case of compiling a single vertex shader and fragment shader and linking them into a GLSL program. Throws an exception if compiling or linking fails.

Definition