- Cal3D 0.11 API Reference - |
Public Member Functions | |
CalMesh (CalCoreMesh *pCoreMesh) | |
Constructs the mesh instance. More... | |
~CalMesh () | |
Destructs the mesh instance. More... | |
CalCoreMesh * | getCoreMesh () |
Provides access to the core mesh. More... | |
CalSubmesh * | getSubmesh (int id) |
Provides access to a submesh. More... | |
int | getSubmeshCount () |
Returns the number of submeshes. More... | |
std::vector< CalSubmesh * > & | getVectorSubmesh () |
Returns the submesh vector. More... | |
void | setLodLevel (float lodLevel) |
Sets the LOD level. More... | |
void | setMaterialSet (int setId) |
Sets the material set. More... | |
void | setModel (CalModel *pModel) |
Sets the model. More... | |
void | disableInternalData () |
Disable internal data (and thus springs system) More... | |
CalMesh::CalMesh | ( | CalCoreMesh * | pCoreMesh | ) |
Constructs the mesh instance.
This function is the default constructor of the mesh instance.
CalMesh::~CalMesh | ( | ) |
Destructs the mesh instance.
This function is the destructor of the mesh instance.
void CalMesh::disableInternalData | ( | ) |
Disable internal data (and thus springs system)
CalCoreMesh * CalMesh::getCoreMesh | ( | ) |
Provides access to the core mesh.
This function returns the core mesh on which this mesh instance is based on.
CalSubmesh * CalMesh::getSubmesh | ( | int | id | ) |
Provides access to a submesh.
This function returns the submesh with the given ID.
id | The ID of the submesh that should be returned. |
int CalMesh::getSubmeshCount | ( | ) |
Returns the number of submeshes.
This function returns the number of submeshes in the mesh instance.
std::vector< CalSubmesh * > & CalMesh::getVectorSubmesh | ( | ) |
Returns the submesh vector.
This function returns the vector that contains all submeshes of the mesh instance.
void CalMesh::setLodLevel | ( | float | lodLevel | ) |
Sets the LOD level.
This function sets the LOD level of the mesh instance.
lodLevel | The LOD level in the range [0.0, 1.0]. |
void CalMesh::setMaterialSet | ( | int | setId | ) |
Sets the material set.
This function sets the material set of the mesh instance.
setId | The ID of the material set. |
void CalMesh::setModel | ( | CalModel * | pModel | ) |
Sets the model.
This function sets the model to which the mesh instance is attached to.
pModel | The model to which the mesh instance should be attached to. |