Public Member Functions

IEffectFile Class Reference

Search for all occurrences

Detailed Description

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>

Inheritance diagram for IEffectFile:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual Interface_ID  GetID ()
virtual bool  SaveEffectFile (MCHAR *fileName)=0
  Save the current material as a D3D compliant Effect file.

Member Function Documentation

virtual Interface_ID GetID ( ) [inline, virtual]
Remarks:
This method returns the unique interface ID.

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

Parameters:
*fileName The name of the file to save
Returns:
TRUE if successful

IEffectFile IEffectFile IEffectFile IEffectFile IEffectFile IEffectFile IEffectFile IEffectFile IEffectFile IEffectFile
IEffectFile IEffectFile IEffectFile IEffectFile IEffectFile IEffectFile IEffectFile IEffectFile IEffectFile IEffectFile