Glsl_program_use - 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. Applies a given shader to the current rendering context that will be used on any further draw calls.

Parameters

  • id: index of the shader program

Return Values

none: This function has no return values.

Example Call

// demonstrates setting a shader to be used in subsequent draw calls
shader_program_use(mysh);

NOTOC

Category:Function:All