Drag[en]gine Game Engine
1.21
|
Skin with textures. More...
#include <deSkin.h>
Public Types | |
typedef deTObjectReference< deSkin > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deResource | |
typedef deTObjectReference< deResource > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deObject | |
typedef deTObjectReference< deObject > | Ref |
Type holding strong reference. More... | |
Public Member Functions | |
Texture Management | |
int | GetTextureCount () const |
Count of textures. More... | |
void | AddTexture (deSkinTexture *tex) |
Adds the given texture. More... | |
deSkinTexture * | GetTextureAt (int index) const |
Texture with the given index. More... | |
int | IndexOfTextureNamed (const char *name) const |
Index of the texture with the given name or -1 if not found. More... | |
Mapped Values | |
int | GetMappedCount () const |
Count of mapped values. More... | |
deSkinMapped * | GetMappedAt (int index) const |
Mapped value at index. More... | |
deSkinMapped * | GetMappedNamed (const char *name) const |
Named mapped value or nullptr. More... | |
int | IndexOfMapped (deSkinMapped *mapped) const |
Index of mapped value or -1 if absent. More... | |
int | IndexOfMappedNamed (const char *name) const |
Index of named mapped value or -1 if absent. More... | |
bool | HasMapped (deSkinMapped *mapped) const |
Mapped value is present. More... | |
bool | HasMappedNamed (const char *name) const |
Named mapped value is present. More... | |
void | AddMapped (deSkinMapped *mapped) |
Add mapped value. More... | |
Public Member Functions inherited from deFileResource | |
deVirtualFileSystem * | GetVirtualFileSystem () const |
Virtual file system or NULL if build from memory. More... | |
const decString & | GetFilename () const |
Filename or empty string if build from memory. More... | |
TIME_SYSTEM | GetModificationTime () const |
Modification time used to detect resources changing on disk while loaded. More... | |
void | SetModificationTime (TIME_SYSTEM modificationTime) |
Set modification time used to detect resources changing on disk while loaded. More... | |
bool | GetAsynchron () const |
Resource is asynchron. More... | |
void | SetAsynchron (bool asynchron) |
Set if resource is asynchron. More... | |
bool | GetOutdated () const |
void | MarkOutdated () |
deFileResource (deFileResourceManager *resourceManager, deVirtualFileSystem *vfs, const char *filename, TIME_SYSTEM modificationTime) | |
Create file resource. More... | |
Public Member Functions inherited from deResource | |
deResourceManager * | GetResourceManager () const |
Resource manager or NULL if resource is leaking. More... | |
deEngine * | GetEngine () const |
Game engine object from resource manager. More... | |
deResource * | GetLLManagerPrev () const |
Previous resource in the resource manager linked list. More... | |
void | SetLLManagerPrev (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
deResource * | GetLLManagerNext () const |
Next resource in the resource manager linked list. More... | |
void | SetLLManagerNext (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
void | MarkLeaking () |
Marks the resource leaking. More... | |
deResource (deResourceManager *resourceManager) | |
Create resource. More... | |
Public Member Functions inherited from deObject | |
int | GetRefCount () const |
Reference count. More... | |
void | AddReference () |
Add reference increasing reference count by 1. More... | |
void | FreeReference () |
Decrease reference count by one and delete object if count reaches 0. More... | |
deObject () | |
Create object with reference count of 1. More... | |
Constructors and Destructors | |
deSkin (deSkinManager *manager, deVirtualFileSystem *vfs, const char *filename, TIME_SYSTEM modificationTime) | |
Create new skin object with the given resource manager and filename. More... | |
virtual | ~deSkin () |
Clean up skin. More... | |
System Peers | |
deBaseGraphicSkin * | GetPeerGraphic () const |
Graphic system peer object. More... | |
void | SetPeerGraphic (deBaseGraphicSkin *peer) |
Set graphic system peer object. More... | |
deBaseAudioSkin * | GetPeerAudio () const |
Audio system peer object. More... | |
void | SetPeerAudio (deBaseAudioSkin *peer) |
Set audio system peer object. More... | |
deBasePhysicsSkin * | GetPeerPhysics () const |
Physics system peer object. More... | |
void | SetPeerPhysics (deBasePhysicsSkin *peer) |
Set physics system peer object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from deFileResource | |
virtual | ~deFileResource () |
Clean up file resource. More... | |
Protected Member Functions inherited from deResource | |
virtual | ~deResource () |
Clean up resource. More... | |
Protected Member Functions inherited from deObject | |
virtual | ~deObject () |
Clean up object. More... | |
Skin with textures.
Skins contain the textures for scene components. A skin is a collection of textures. Each texture is named and composes of properties. Components link to textures using their name. Properties describe where the data for various types originate from.
typedef deTObjectReference<deSkin> deSkin::Ref |
Type holding strong reference.
deSkin::deSkin | ( | deSkinManager * | manager, |
deVirtualFileSystem * | vfs, | ||
const char * | filename, | ||
TIME_SYSTEM | modificationTime | ||
) |
Create new skin object with the given resource manager and filename.
|
protectedvirtual |
Clean up skin.
void deSkin::AddMapped | ( | deSkinMapped * | mapped | ) |
Add mapped value.
void deSkin::AddTexture | ( | deSkinTexture * | tex | ) |
Adds the given texture.
deSkinMapped* deSkin::GetMappedAt | ( | int | index | ) | const |
Mapped value at index.
int deSkin::GetMappedCount | ( | ) | const |
Count of mapped values.
deSkinMapped* deSkin::GetMappedNamed | ( | const char * | name | ) | const |
Named mapped value or nullptr.
|
inline |
Audio system peer object.
|
inline |
Graphic system peer object.
|
inline |
Physics system peer object.
deSkinTexture* deSkin::GetTextureAt | ( | int | index | ) | const |
Texture with the given index.
|
inline |
Count of textures.
bool deSkin::HasMapped | ( | deSkinMapped * | mapped | ) | const |
Mapped value is present.
bool deSkin::HasMappedNamed | ( | const char * | name | ) | const |
Named mapped value is present.
int deSkin::IndexOfMapped | ( | deSkinMapped * | mapped | ) | const |
Index of mapped value or -1 if absent.
int deSkin::IndexOfMappedNamed | ( | const char * | name | ) | const |
Index of named mapped value or -1 if absent.
int deSkin::IndexOfTextureNamed | ( | const char * | name | ) | const |
Index of the texture with the given name or -1 if not found.
void deSkin::SetPeerAudio | ( | deBaseAudioSkin * | peer | ) |
Set audio system peer object.
void deSkin::SetPeerGraphic | ( | deBaseGraphicSkin * | peer | ) |
Set graphic system peer object.
void deSkin::SetPeerPhysics | ( | deBasePhysicsSkin * | peer | ) |
Set physics system peer object.