Texture property map. More...
#include <deTexturePropertyMap.h>
Public Member Functions | |
Constructors and Destructors | |
| deTexturePropertyMap (deEngine *engine) | |
| Creates a new mapper. | |
| ~deTexturePropertyMap () | |
| Cleans up the mapper. | |
Management | |
| int | GetPropertyNameCount () const |
| Retrieves the number of property names. | |
| const char * | GetPropertyNameAt (int index) const |
| Retrieves the property name for the given index/number. | |
| int | IndexOfPropertyName (const char *name) const |
| Retrieves the index of the given property name or -1 if not found. | |
| bool | HasPropertyName (const char *name) const |
| Determines if the given property name exists. | |
| int | AddPropertyName (const char *name) |
| Adds a property name. | |
Texture property map.
Properties defined various material properties in skin textures. To allow adding any kind of new material properties without changing the engine code or other modules a simple name based system is used. Depending on the name of a property graphic modules can apply the property to different material properties internally.
| deTexturePropertyMap::deTexturePropertyMap | ( | deEngine * | engine ) |
Creates a new mapper.
| deTexturePropertyMap::~deTexturePropertyMap | ( | ) |
Cleans up the mapper.
| int deTexturePropertyMap::AddPropertyName | ( | const char * | name ) |
Adds a property name.
If the name does not exists yet it is added and all modules are notified about the new name. In all cases the index of the property name is returned.
| propertyName | Name of the property to add. |
| const char* deTexturePropertyMap::GetPropertyNameAt | ( | int | index ) | const |
Retrieves the property name for the given index/number.
| int deTexturePropertyMap::GetPropertyNameCount | ( | ) | const [inline] |
Retrieves the number of property names.
| bool deTexturePropertyMap::HasPropertyName | ( | const char * | name ) | const |
Determines if the given property name exists.
| int deTexturePropertyMap::IndexOfPropertyName | ( | const char * | name ) | const |
Retrieves the index of the given property name or -1 if not found.
1.7.2