Implemented by a plugin, typically a material, to provide access to the underlying shader code.
A developer can use this interface to access the actual shader
code used to draw the material when in hardware mode. The interface
can be accessed with the following code
IEffectFile* l_pEffectFile =
static_cast<IEffectFile*>(lpMaterial->GetInterface(EFFECT_FILE_INTERFACE));
All methods are implemented by the host plugin
#include <RTMax.h>
Public Member Functions |
|
virtual Interface_ID | GetID () |
virtual bool | SaveEffectFile (MCHAR *fileName)=0 |
Save the current material as a D3D compliant
Effect file. |
virtual Interface_ID GetID | ( | ) | [inline, virtual] |
Reimplemented from BaseInterface.
{ return EFFECT_FILE_INTERFACE; }
virtual bool SaveEffectFile | ( | MCHAR * | fileName | ) | [pure virtual] |
Save the current material as a D3D compliant Effect file.
This will save the underlying shader code to the file provided
*fileName | The name of the file to save |