Glsl_program_attach - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Notation
Description
NOTE: Shader programs must be attached to shaders before they are linked and compiled, and they must be linked and validated before they can be used. Attaches a given shader to a given shader program.
Parameters
- id: index of the shader program
- sid: index of the shader
Return Values
none: This function has no return values.
Example Call
// demonstrates attaching a shader to a shader program
shader_program_attach(myshpr, mysh);
NOTOC