NAME

cgGetErrorHandler - get the error handler callback function

SYNOPSIS

  #include <Cg/cg.h>

  typedef void (*CGerrorHandlerFunc)( CGcontext context,
                                      CGerror error,
                                      void * appdata );

  CGerrorHandlerFunc cgGetErrorHandler( void ** appdataptr );

PARAMETERS

appdataptr

A pointer for an application provided data pointer.

RETURN VALUES

cgGetErrorHandler returns the current error handler callback function. NULL will be returned if no callback function is set.

If appdataptr is not NULL then the current appdata pointer will be copied into the location pointed to by appdataptr.

DESCRIPTION

cgGetErrorHandler returns the current error handler callback function and application provided data pointer.

EXAMPLES

to-be-written

ERRORS

to-be-written

HISTORY

cgGetErrorHandler was introduced in Cg 1.4.

SEE ALSO

cgSetErrorHandler