Microsoft DirectX 8.1 (C++) |
The SetDefaultEffect method sets the default effect. If the render engine cannot render an effect, it substitutes the default effect.
Syntax
HRESULT SetDefaultEffect(
GUID *pGuid
);
Parameters
pGuid
Pointer to a variable that contains the GUID of the default effect.
Return Value
Returns S_OK if successful, or E_POINTER otherwise.
Remarks
If you do not set a default effect, or if the effect that you specify as a default causes an error, DES uses its own default effect.
See Also