Name
cgGetProgramDomain - get a program's domain
Synopsis
#include <Cg/cg.h> CGdomain cgGetProgramDomain( CGprogram program );Parameters
- program
- The program.
Return Values
Returns the domain enumerant associated with program.
Description
cgGetProgramDomain retrieves the domain enumerant currently associated with a program. This is a convenience routine which essentially calls cgGetProgramProfile followed by cgGetProfileDomain.
Examples
to-be-written
Errors
CG_INVALID_PROGRAM_HANDLE_ERROR is generated if program is not a valid program handle.
History
cgGetProgramDomain was introduced in Cg 2.2.
See Also