NAME
cgD3D9GetLastError - get the last D3D error that occurred
SYNOPSIS
#include <Cg/cgD3D9.h> HRESULT cgD3D9GetLastError( void );PARAMETERS
None.
RETURN VALUES
cgD3D9GetLastError returns the last D3D error that occurred during an expanded interface function call. D3D_OK is returned if no D3D error has occurred since the last call to cgD3D9GetLastError.
DESCRIPTION
cgD3D9GetLastError retrieves the last D3D error that occurred during an expanded interface function call. The last error is always cleared immediately after the call.
EXAMPLES
The following example code illustrates the use of cgD3D9GetLastError:
HRESULT lastError = cgD3D9GetLastError();ERRORS
cgD3D9GetLastError does not generate any errors.
orto-be-written
HISTORY
cgD3D9GetLastError was introduced in Cg to-be-written.
SEE ALSO