NAME

cgGLGetProgramID - get the OpenGL program ID associated with a program

SYNOPSIS

  #include <Cg/cgGL.h>

  GLuint cgGLGetProgramID( CGprogram program );

PARAMETERS

program

The program.

RETURN VALUES

cgGLGetProgramID returns a GLuint associate with the GL program object for profiles that use program object. Some profiles (e.g. fp20) do not have GL programs and will always return 0.

DESCRIPTION

cgGLGetProgramID returns the identifier to the program GL object associated with program. cgGLGetProgramID should not be called before cgGLLoadProgram is called.

EXAMPLES

to-be-written

ERRORS

CG_INVALID_PROFILE_ERROR is generated if program's profile is not a supported OpenGL profile.

CG_INVALID_PROGRAM_HANDLE_ERROR is generated if program is not a valid program.

HISTORY

cgGLGetProgramID was introduced in Cg 1.2.

SEE ALSO

cgGLLoadProgram, cgGLBindProgram