Skin with textures. More...
#include <deSkin.h>
Public Member Functions | |
Constructors and Destructors | |
| deSkin (deSkinManager *manager, const char *filename) | |
| Creates a new skin object with the given resource manager and filename. | |
| ~deSkin () | |
| Cleans up the skin. | |
Texture Management | |
| int | GetTextureCount () const |
| Retrieves the count of textures. | |
| void | AddTexture (deSkinTexture *tex) |
| Adds the given texture. | |
| deSkinTexture * | GetTextureAt (int index) const |
| Retrieves the texture with the given index. | |
| int | IndexOfTextureNamed (const char *name) const |
| Retrieves the index of the texture with the given name or -1 if not found. | |
System Peers | |
| deBaseGraphicSkin * | GetGraphicSkin () const |
| Retrieves the graphic system peer object. | |
| void | SetGraphicSkin (deBaseGraphicSkin *graSkin) |
| Sets the graphic system peer object. | |
| deBaseAudioSkin * | GetAudioSkin () const |
| Retrieves the audio system peer object. | |
| void | SetAudioSkin (deBaseAudioSkin *audSkin) |
| Sets the audio system peer object. | |
| deBasePhysicsSkin * | GetPhysicsSkin () const |
| Retrieves the physics system peer object. | |
| void | SetPhysicsSkin (deBasePhysicsSkin *phySkin) |
| Sets the physics system peer object. | |
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.
| deSkin::deSkin | ( | deSkinManager * | manager, |
| const char * | filename | ||
| ) |
Creates a new skin object with the given resource manager and filename.
| deSkin::~deSkin | ( | ) |
Cleans up the skin.
| void deSkin::AddTexture | ( | deSkinTexture * | tex ) |
Adds the given texture.
| deBaseAudioSkin* deSkin::GetAudioSkin | ( | ) | const [inline] |
Retrieves the audio system peer object.
| deBaseGraphicSkin* deSkin::GetGraphicSkin | ( | ) | const [inline] |
Retrieves the graphic system peer object.
| deBasePhysicsSkin* deSkin::GetPhysicsSkin | ( | ) | const [inline] |
Retrieves the physics system peer object.
| deSkinTexture* deSkin::GetTextureAt | ( | int | index ) | const |
Retrieves the texture with the given index.
| int deSkin::GetTextureCount | ( | ) | const [inline] |
Retrieves the count of textures.
| int deSkin::IndexOfTextureNamed | ( | const char * | name ) | const |
Retrieves the index of the texture with the given name or -1 if not found.
| void deSkin::SetAudioSkin | ( | deBaseAudioSkin * | audSkin ) |
Sets the audio system peer object.
| void deSkin::SetGraphicSkin | ( | deBaseGraphicSkin * | graSkin ) |
Sets the graphic system peer object.
| void deSkin::SetPhysicsSkin | ( | deBasePhysicsSkin * | phySkin ) |
Sets the physics system peer object.
1.7.2