Interface to hold geom cache data. More...
#include
Inherits IStreamable.
Public Member Functions | |
| virtual int | AddRef ()=0 |
| virtual int | Release ()=0 |
| virtual bool | IsValid () const =0 |
| virtual void | SetMaterial (IMaterial *pMaterial)=0 |
| virtual _smart_ptr< IMaterial > | GetMaterial ()=0 |
| virtual const _smart_ptr< IMaterial > | GetMaterial () const =0 |
| virtual const char * | GetFilePath () const =0 |
| virtual float | GetDuration () const =0 |
| virtual void | Reload ()=0 |
| Reloads the cache. Need to call this when cache file changed. | |
| virtual SStatistics | GetStatistics () const =0 |
Public Member Functions inherited from IStreamable | |
| bool | UpdateStreamingPrioriryLowLevel (float fImportance, int nRoundId, bool bFullUpdate) |
| virtual void | StartStreaming (bool bFinishNow, IReadStream_AutoPtr *ppStream)=0 |
| virtual int | GetStreamableContentMemoryUsage (bool bJustForDebug=false)=0 |
| virtual void | ReleaseStreamableContent ()=0 |
| virtual void | GetStreamableName (string &sName)=0 |
| virtual uint32 | GetLastDrawMainFrameId ()=0 |
| virtual bool | IsUnloadable () const =0 |
Protected Member Functions | |
| virtual | ~IGeomCache () |
| Should be never called, use Release() instead. | |
Additional Inherited Members | |
Public Attributes inherited from IStreamable | |
| SInstancePriorityInfo | m_arrUpdateStreamingPrioriryRoundInfo [2] |
| float | fCurImportance |
| EFileStreamingStatus | m_eStreamingStatus |
| uint32 | m_nSelectedFrameId: 31 |
| uint32 | m_nStatsInUse: 1 |
Interface to hold geom cache data.
|
pure virtual |
Notifies that the object is being used. Increase the reference count of the object.
|
pure virtual |
Returns the duration of the geom cache animation
|
pure virtual |
Returns the filename of the object
|
pure virtual |
Returns default material of the geometry.
| nType | Pass 0 to get the physic geometry or pass 1 to get the obstruct geometry. |
|
pure virtual |
Checks if the geometry cache was successfully loaded from disk.
|
pure virtual |
Notifies that the object is no longer needed. Decrease the reference count of the object. If the reference count reaches zero, the object will be deleted from memory.
|
pure virtual |
Set default material for the geometry.
| pMaterial | Valid pointer to the material. |