glsl_program_detach(id,sid)

From ENIGMA
Jump to navigation Jump to search

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.
Detaches a given shader from a given shader program.

Parameters

Parameter Data Type Description
id integer index of the shader program
sid integer index of the shader

Return Values

void: This function does not return anything.

Example Call

// demonstrates detaching a shader to a shader program
glsl_program_detach(myshpr, mysh);