 | Program.DetachShader Method |
Detach a shader object from a program object.
Namespace:
Ooogles
Assembly:
Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic void DetachShader(
Shader shader
)
Public Sub DetachShader (
shader As Shader
)
public:
void DetachShader(
Shader^ shader
)
member DetachShader :
shader : Shader -> unit
Parameters
- shader
- Type: Ooogles.Shader
The shader object to be detached.
ExceptionsException | Condition |
---|
GLException | InvalidOperation if shader is not attached to this program. |
Remarks
This command can be used to undo the effect of the command AttachShader.
If shader has already been flagged for deletion and it is not attached to any other program object,
it will be deleted after it has been detached.
OpenGL API: glDetachShader
See Also