NAME

cgGLGetProgramID - Returns the OpenGL program ID associated with the CGprogram object

SYNOPSIS

  #include <Cg/cgGL.h>

  GLuint cgGLGetProgramID(CGprogram prog);

PARAMETERS

prog

Specifies the program.

DESCRIPTION

cgGLGetProgramID returns the identifier to the program GL object associated with the given Cg program. cgGLGetProgramID should not be called before cgGLLoadProgram is called. =head1 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.

ERRORS

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

CG_INVALID_PROGRAM_HANDLE_ERROR is generated if prog is not a valid program.

SEE ALSO

cgGLLoadProgram, and cgGLBindProgram