OmegaEngine API
1.0.3
|
Data loaded from a file and cached for use by one or more Renderables, Sounds, etc.. More...
Public Member Functions | |
override string | ToString () |
virtual void | HoldReference () |
Increments the ReferenceCount by one. More... | |
virtual void | ReleaseReference () |
Decrements the ReferenceCount by one. More... | |
void | Dispose () |
Disposes the internal DirectX resources of this asset. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
To be called by IDisposable.Dispose and the object destructor. More... | |
Properties | |
string | Name [get, set] |
The filename More... | |
int | ReferenceCount [get] |
How many Renderables use this asset More... | |
bool | Disposed [get] |
Was this asset already disposed? More... | |
Properties inherited from NanoByte.Common.INamed< Asset > | |
string | Name |
Data loaded from a file and cached for use by one or more Renderables, Sounds, etc..
|
inline |
Disposes the internal DirectX resources of this asset.
Will be automatically called by CacheManager.Clean if ReferenceCount is zero.
|
inlineprotectedvirtual |
To be called by IDisposable.Dispose and the object destructor.
disposing | true if called manually and not by the garbage collector. |
Reimplemented in OmegaEngine.Assets.XMesh, OmegaEngine.Assets.XTexture, OmegaEngine.Assets.XAnimatedMesh, and OmegaEngine.Assets.XSound.
|
inlinevirtual |
Increments the ReferenceCount by one.
Implements OmegaEngine.Assets.IReferenceCount.
Reimplemented in OmegaEngine.Assets.XMesh.
|
inlinevirtual |
Decrements the ReferenceCount by one.
Implements OmegaEngine.Assets.IReferenceCount.
Reimplemented in OmegaEngine.Assets.XMesh.
|
get |
Was this asset already disposed?
|
getset |
The filename
|
get |
How many Renderables use this asset
When this hits zero you can call Dispose()