glUseProgram Function

Syntax

GL_APICALL void GL_APIENTRY glUseProgram(
     GLuint program
);

Arguments

Name Description
in program Program object

Return Values

No values are returned.

Description

Embeds a program object as part of the current rendering pipeline.

Set program to the program object. A GL_INVALID_VALUE error occurs when program is set to an invalid value.

This function generates the following errors.

GL_INVALID_OPERATIONAn incorrectly linked program was specified.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL