| - Cal3D 0.9 API Reference - |
#include <corematerial.h>
Public Methods | |
| CalCoreMaterial () | |
| Constructs the core material instance. More... | |
| virtual | ~CalCoreMaterial () |
| Destructs the core model instance. More... | |
| bool | create () |
| Creates the core material instance. More... | |
| void | destroy () |
| Destroys the core material instance. More... | |
| Color & | getAmbientColor () |
| Returns the ambient color. More... | |
| Color & | getDiffuseColor () |
| Returns the diffuse color. More... | |
| int | getMapCount () |
| Returns the number of maps. More... | |
| const std::string & | getMapFilename (int mapId) |
| Returns a specified map texture filename. More... | |
| Cal::UserData | getMapUserData (int mapId) |
| Provides access to a specified map user data. More... | |
| float | getShininess () |
| Returns the shininess factor. More... | |
| Color & | getSpecularColor () |
| Returns the specular color. More... | |
| Cal::UserData | getUserData () |
| Provides access to the user data. More... | |
| std::vector< Map > & | getVectorMap () |
| Returns the map vector. More... | |
| bool | reserve (int mapCount) |
| Reserves memory for the maps. More... | |
| void | setAmbientColor (const Color &ambientColor) |
| Sets the ambient color. More... | |
| void | setDiffuseColor (const Color &diffuseColor) |
| Sets the diffuse color. More... | |
| bool | setMap (int mapId, const Map &map) |
| Sets a specified map. More... | |
| bool | setMapUserData (int mapId, Cal::UserData userData) |
| Stores specified map user data. More... | |
| void | setShininess (float shininess) |
| Sets the shininess factor. More... | |
| void | setSpecularColor (const Color &specularColor) |
| Sets the specular color. More... | |
| void | setUserData (Cal::UserData userData) |
| Stores user data. More... | |
Protected Attributes | |
| Color | m_ambientColor |
| Color | m_diffuseColor |
| Color | m_specularColor |
| float | m_shininess |
| std::vector< Map > | m_vectorMap |
| Cal::UserData | m_userData |
|
|
Constructs the core material instance. This function is the default constructor of the core material instance. |
|
|
Destructs the core model instance. This function is the destructor of the core model instance. |
|
|
Creates the core material instance. This function creates the core material instance.
|
|
|
Destroys the core material instance. This function destroys all data stored in the core material instance and frees all allocated memory. |
|
|
Returns the ambient color. This function returns the ambient color of the core material instance.
|
|
|
Returns the diffuse color. This function returns the diffuse color of the core material instance.
|
|
|
Returns the number of maps. This function returns the number of mapss in the core material instance.
|
|
|
Returns a specified map texture filename. This function returns the texture filename for a specified map ID of the core material instance.
|
|
|
Provides access to a specified map user data. This function returns the user data stored in the specified map of the core material instance.
|
|
|
Returns the shininess factor. This function returns the shininess factor of the core material instance.
|
|
|
Returns the specular color. This function returns the specular color of the core material instance.
|
|
|
Provides access to the user data. This function returns the user data stored in the core material instance.
|
|
|
Returns the map vector. This function returns the vector that contains all maps of the core material instance.
|
|
|
Reserves memory for the maps. This function reserves memory for the maps of the core material instance.
|
|
|
Sets the ambient color. This function sets the ambient color of the core material instance.
|
|
|
Sets the diffuse color. This function sets the diffuse color of the core material instance.
|
|
||||||||||||
|
Sets a specified map. This function sets a specified map in the core material instance.
|
|
||||||||||||
|
Stores specified map user data. This function stores user data in a specified map of the core material instance.
|
|
|
Sets the shininess factor. This function sets the shininess factor of the core material instance.
|
|
|
Sets the specular color. This function sets the specular color of the core material instance.
|
|
|
Stores user data. This function stores user data in the core material instance.
|
1.2.14
© 1997-2001
Dimitri van Heesch