IGeomCache

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

Detailed Description

Interface to hold geom cache data.

Member Function Documentation

◆ AddRef()

virtual int IGeomCache::AddRef ( )
pure virtual

Notifies that the object is being used. Increase the reference count of the object.

◆ GetDuration()

virtual float IGeomCache::GetDuration ( ) const
pure virtual

Returns the duration of the geom cache animation

Returns
float value in seconds

◆ GetFilePath()

virtual const char* IGeomCache::GetFilePath ( ) const
pure virtual

Returns the filename of the object

Returns
A null terminated string which contain the filename of the object.

◆ GetMaterial()

virtual _smart_ptr<IMaterial> IGeomCache::GetMaterial ( )
pure virtual

Returns default material of the geometry.

Parameters
nTypePass 0 to get the physic geometry or pass 1 to get the obstruct geometry.
Returns
Pointer to a phys_geometry class.

◆ IsValid()

virtual bool IGeomCache::IsValid ( ) const
pure virtual

Checks if the geometry cache was successfully loaded from disk.

Returns
true if valid, otherwise false

◆ Release()

virtual int IGeomCache::Release ( )
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.

◆ SetMaterial()

virtual void IGeomCache::SetMaterial ( IMaterial * pMaterial)
pure virtual

Set default material for the geometry.

Parameters
pMaterialValid pointer to the material.