Name
cgGetBehaviorString - get the behavior name associated with a behavior enumerant
Synopsis
#include <Cg/cg.h>
const char * cgGetBehaviorString( CGbehavior behavior );
Parameters
- behavior
-
The behavior enumerant.
Return Values
Returns the behavior string associated with behavior.
Returns NULL if behavior is not a valid CGbehavior.
Description
cgGetBehaviorString returns the behavior name associated with
a given behavior enumerant.
Examples
static void dumpCgContextInfo(CGcontext context)
{
const char* p = cgGetBehaviorString(cgGetContextBehavior(context));
if ( p ) {
printf(" Behavior: %s\n", p );
}
/* ... */
}
Errors
None.
History
cgGetBehaviorString was introduced in Cg 3.0.
See Also
cgGetBehavior,
cgGetContextBehavior,
cgSetContextBehavior
|