Name
cgGetDomainString - get the domain name associated with a domain enumerant
Synopsis
#include <Cg/cg.h>
const char * cgGetDomainString( CGdomain domain );
Parameters
- domain
-
The domain enumerant.
Return Values
Returns the domain string of the enumerant domain.
Returns NULL if domain is not a valid domain.
Description
cgGetDomainString returns the domain name associated with
a domain enumerant.
Examples
static void dumpCgProgramInfo(CGprogram program)
{
const char* p = cgGetDomainString(cgGetProgramDomain(program));
if ( p ) {
printf(" Domain: %s\n", cgGetDomainString(cgGetProgramDomain(program)));
}
/* ... */
}
Errors
None.
History
cgGetDomainString was introduced in Cg 2.2.
See Also
cgGetDomain,
cgGetProgramDomain
|