- Cal3D 0.9 API Reference - |
#include <physique.h>
Public Methods | |
CalPhysique () | |
Constructs the physique instance. More... | |
virtual | ~CalPhysique () |
Destructs the physique instance. More... | |
int | calculateTangentSpaces (CalSubmesh *pSubmesh, int mapId, float *pTangentSpaceBuffer) |
Calculates the transformed tangent space data. More... | |
int | calculateNormals (CalSubmesh *pSubmesh, float *pNormalBuffer) |
Calculates the transformed normal data. More... | |
int | calculateVertices (CalSubmesh *pSubmesh, float *pVertexBuffer) |
Calculates the transformed vertex data. More... | |
int | calculateVerticesAndNormals (CalSubmesh *pSubmesh, float *pVertexBuffer) |
Calculates the transformed vertex data. More... | |
int | calculateVerticesNormalsAndTexCoords (CalSubmesh *pSubmesh, float *pVertexBuffer, int NumTexCoords=1) |
Calculates the transformed vertex data. More... | |
bool | create (CalModel *pModel) |
Creates the physique instance. More... | |
void | destroy () |
Destroys the physique instance. More... | |
void | update () |
Updates all the internally handled attached meshes. More... | |
void | setNormalization (bool normalize) |
Sets the normalization flag to true or false. More... | |
Public Attributes | |
CalModel * | m_pModel |
bool | m_Normalize |
|
Constructs the physique instance. This function is the default constructor of the physique instance. |
|
Destructs the physique instance. This function is the destructor of the physique instance. |
|
Calculates the transformed normal data. This function calculates and returns the transformed normal data of a specific submesh.
|
|
Calculates the transformed tangent space data. This function calculates and returns the transformed tangent space data of a specific submesh.
|
|
Calculates the transformed vertex data. This function calculates and returns the transformed vertex data of a specific submesh.
|
|
Calculates the transformed vertex data. This function calculates and returns the transformed vertex and the transformed normal datadata of a specific submesh.
|
|
Calculates the transformed vertex data. This function calculates and returns the transformed vertex, the transformed normal datadata and the texture coords of a specific submesh.
|
|
Creates the physique instance. This function creates the physique instance.
|
|
Destroys the physique instance. This function destroys all data stored in the physique instance and frees all allocated memory. |
|
Sets the normalization flag to true or false. This function sets the normalization flag on or off. If off, the normals calculated by Cal3D will not be normalized. Instead, this transform is left up to the user. |
|
Updates all the internally handled attached meshes. This function updates all the attached meshes of the model that are handled internally. |