IMaterialEffects

IMaterialEffectsabstract

The material effects system is responsible for triggering effects (such as particles) when the surface types of two materials interact (typically due to a physical collision). More...

#include

Public Member Functions

virtual void LoadFXLibraries ()=0
virtual void Reset (bool bCleanup)=0
virtual void ClearDelayedEffects ()=0
virtual TMFXEffectId GetEffectIdByName (const char *libName, const char *effectName)=0
virtual TMFXEffectId GetEffectId (int surfaceIndex1, int surfaceIndex2)=0
virtual TMFXEffectId GetEffectId (const char *customName, int surfaceIndex2)=0
virtual TMFXEffectId GetEffectId (IEntityClass *pEntityClass, int surfaceIndex2)=0
virtual SMFXResourceListPtr GetResources (TMFXEffectId effectId) const =0
virtual void PreLoadAssets ()=0
virtual bool ExecuteEffect (TMFXEffectId effectId, SMFXRunTimeEffectParams &runtimeParams)=0
virtual void StopEffect (TMFXEffectId effectId)=0
virtual int GetDefaultSurfaceIndex ()=0
virtual int GetDefaultCanopyIndex ()=0
virtual bool PlayBreakageEffect (ISurfaceType *pSurfaceType, const char *breakageType, const SMFXBreakageParams &mfxBreakageParams)=0
virtual void SetCustomParameter (TMFXEffectId effectId, const char *customParameter, const SMFXCustomParamValue &customParameterValue)=0
virtual void CompleteInit ()=0
virtual void ReloadMatFXFlowGraphs ()=0
virtual size_t GetMatFXFlowGraphCount () const =0
virtual IFlowGraphPtr GetMatFXFlowGraph (int index, string *pFileName=NULL) const =0
virtual IFlowGraphPtr LoadNewMatFXFlowGraph (const string &filename)=0
virtual void EnumerateEffectNames (EnumerateMaterialEffectsDataCallback &callback, const char *szLibraryName) const =0
virtual void EnumerateLibraryNames (EnumerateMaterialEffectsDataCallback &callback) const =0
virtual void AddListener (IMaterialEffectsListener *pListener, const char *name)=0
virtual void RemoveListener (IMaterialEffectsListener *pListener)=0
virtual void LoadFXLibraryFromXMLInMemory (const char *szName, XmlNodeRef root)=0
virtual void UnloadFXLibrariesWithPrefix (const char *szName)=0
virtual void SetAnimFXEvents (IAnimFXEvents *pAnimEvents)=0
virtual IAnimFXEvents * GetAnimFXEvents ()=0

Detailed Description

The material effects system is responsible for triggering effects (such as particles) when the surface types of two materials interact (typically due to a physical collision).