Name
cgGetCompilerIncludeCallback - get the include callback function
Synopsis
#include <Cg/cg.h>
typedef void (*CGIncludeCallbackFunc)( CGcontext context, const char *filename );
CGIncludeCallbackFunc cgGetCompilerIncludeCallback( CGcontext context );
Parameters
- context
-
The context of the desired include callback function.
Return Values
Returns the current include callback function.
Returns NULL if no callback function is set.
Description
cgGetCompilerIncludeCallback returns the current callback function used for handing include statements.
Examples
CGIncludeCallbackFunc includeCB = cgGetCompilerIncludeCallback(context);
Errors
CG_INVALID_CONTEXT_HANDLE_ERROR is generated if context is not a valid context.
History
cgGetCompilerIncludeCallback was introduced in Cg 2.1.
See Also
cgSetCompilerIncludeCallback,
cgSetCompilerIncludeString,
cgSetCompilerIncludeFile
|