- Cal3D 0.9 API Reference - |
#include <coresubmesh.h>
Public Methods | |
CalCoreSubmesh () | |
Constructs the core submesh instance. More... | |
virtual | ~CalCoreSubmesh () |
Destructs the core submesh instance. More... | |
bool | create () |
Creates the core submesh instance. More... | |
void | destroy () |
Destroys the core submesh instance. More... | |
int | getCoreMaterialThreadId () |
Returns the ID of the core material thread. More... | |
int | getFaceCount () |
Returns the number of faces. More... | |
int | getLodCount () |
Returns the number of LOD steps. More... | |
int | getSpringCount () |
Returns the number of springs. More... | |
std::vector< Face > & | getVectorFace () |
Returns the face vector. More... | |
std::vector< PhysicalProperty > & | getVectorPhysicalProperty () |
Returns the physical property vector. More... | |
std::vector< Spring > & | getVectorSpring () |
Returns the spring vector. More... | |
std::vector< std::vector< TangentSpace > > & | getVectorVectorTangentSpace () |
Returns the tangent space vector-vector. More... | |
std::vector< std::vector< TextureCoordinate > > & | getVectorVectorTextureCoordinate () |
Returns the texture coordinate vector-vector. More... | |
std::vector< Vertex > & | getVectorVertex () |
Returns the vertex vector. More... | |
int | getVertexCount () |
Returns the number of vertices. More... | |
bool | isTangentsEnabled (int mapId) |
Returns true if tangent vectors are enabled. More... | |
bool | enableTangents (int mapId, bool enabled) |
Enables (and calculates) or disables the storage of tangent spaces. More... | |
bool | reserve (int vertexCount, int textureCoordinateCount, int faceCount, int springCount) |
Reserves memory for the vertices, faces and texture coordinates. More... | |
void | setCoreMaterialThreadId (int coreMaterialThreadId) |
Sets the ID of the core material thread. More... | |
bool | setFace (int faceId, const Face &face) |
Sets a specified face. More... | |
void | setLodCount (int lodCount) |
Sets the number of LOD steps. More... | |
bool | setPhysicalProperty (int vertexId, const PhysicalProperty &physicalProperty) |
Sets a specified physical property. More... | |
bool | setSpring (int springId, const Spring &spring) |
Sets a specified spring. More... | |
bool | setTangentSpace (int vertexId, int textureCoordinateId, const CalVector &tangent, float crossFactor) |
Sets the tangent vector associated with a specified texture coordinate pair. More... | |
bool | setTextureCoordinate (int vertexId, int textureCoordinateId, const TextureCoordinate &textureCoordinate) |
Sets a specified texture coordinate. More... | |
bool | setVertex (int vertexId, const Vertex &vertex) |
Sets a specified vertex. More... | |
int | addCoreSubMorphTarget (CalCoreSubMorphTarget *pCoreSubMorphTarget) |
Adds a core sub morph target. More... | |
CalCoreSubMorphTarget * | getCoreSubMorphTarget (int id) |
Provides access to a core sub morph target. More... | |
int | getCoreSubMorphTargetCount () |
Returns the number of core sub morph targets. More... | |
std::vector< CalCoreSubMorphTarget * > & | getVectorCoreSubMorphTarget () |
Returns the core sub morph target vector. More... | |
Protected Methods | |
void | UpdateTangentVector (int v0, int v1, int v2, int channel) |
UpdateTangentVector. | |
Protected Attributes | |
std::vector< Vertex > | m_vectorVertex |
std::vector< bool > | m_vectorTangentsEnabled |
std::vector< std::vector< TangentSpace > > | m_vectorvectorTangentSpace |
std::vector< std::vector< TextureCoordinate > > | m_vectorvectorTextureCoordinate |
std::vector< PhysicalProperty > | m_vectorPhysicalProperty |
std::vector< Face > | m_vectorFace |
std::vector< Spring > | m_vectorSpring |
std::vector< CalCoreSubMorphTarget * > | m_vectorCoreSubMorphTarget |
int | m_coreMaterialThreadId |
int | m_lodCount |
|
Constructs the core submesh instance. This function is the default constructor of the core submesh instance. |
|
Destructs the core submesh instance. This function is the destructor of the core submesh instance. |
|
Adds a core sub morph target. This function adds a core sub morph target to the core sub mesh instance.
|
|
Creates the core submesh instance. This function creates the core submesh instance.
|
|
Destroys the core submesh instance. This function destroys all data stored in the core submesh instance and frees all allocated memory. |
|
Enables (and calculates) or disables the storage of tangent spaces. This function enables or disables the storage of tangent space bases. |
|
Returns the ID of the core material thread. This function returns the ID of the core material thread of this core submesh instance.
|
|
Provides access to a core sub morph target. This function returns the core sub morph target with the given ID.
|
|
Returns the number of core sub morph targets. This function returns the number of core sub morph targets in the core sub mesh instance.
|
|
Returns the number of faces. This function returns the number of faces in the core submesh instance.
|
|
Returns the number of LOD steps. This function returns the number of LOD steps in the core submesh instance.
|
|
Returns the number of springs. This function returns the number of springs in the core submesh instance.
|
|
Returns the core sub morph target vector. This function returns the vector that contains all core sub morph target of the core submesh instance.
|
|
Returns the face vector. This function returns the vector that contains all faces of the core submesh instance.
|
|
Returns the physical property vector. This function returns the vector that contains all physical properties of the core submesh instance.
|
|
Returns the spring vector. This function returns the vector that contains all springs of the core submesh instance.
|
|
Returns the tangent space vector-vector. This function returns the vector that contains all tangent space bases of the core submesh instance. This vector contains another vector because there can be more than one texture map at each vertex.
|
|
Returns the texture coordinate vector-vector. This function returns the vector that contains all texture coordinate vectors of the core submesh instance. This vector contains another vector because there can be more than one texture map at each vertex.
|
|
Returns the vertex vector. This function returns the vector that contains all vertices of the core submesh instance.
|
|
Returns the number of vertices. This function returns the number of vertices in the core submesh instance.
|
|
Returns true if tangent vectors are enabled. This function returns true if the core submesh contains tangent vectors.
|
|
Reserves memory for the vertices, faces and texture coordinates. This function reserves memory for the vertices, faces, texture coordinates and springs of the core submesh instance.
|
|
Sets the ID of the core material thread. This function sets the ID of the core material thread of the core submesh instance.
|
|
Sets a specified face. This function sets a specified face in the core submesh instance.
|
|
Sets the number of LOD steps. This function sets the number of LOD steps of the core submesh instance.
|
|
Sets a specified physical property. This function sets a specified physical property in the core submesh instance.
|
|
Sets a specified spring. This function sets a specified spring in the core submesh instance.
|
|
Sets the tangent vector associated with a specified texture coordinate pair. This function sets the tangent vector associated with a specified texture coordinate pair in the core submesh instance.
|
|
Sets a specified texture coordinate. This function sets a specified texture coordinate in the core submesh instance.
|
|
Sets a specified vertex. This function sets a specified vertex in the core submesh instance.
|