- Cal3D 0.11 API Reference -

Public Member Functions

CalPhysiqueDualQuat Class Reference

Inheritance diagram for CalPhysiqueDualQuat:
CalPhysique

List of all members.

Public Member Functions

 CalPhysiqueDualQuat (CalModel *pModel)
virtual int calculateNormals (CalSubmesh *pSubmesh, float *pNormalBuffer, int stride=0) const
 Calculates the transformed normal data.
virtual int calculateVertices (CalSubmesh *pSubmesh, float *pVertexBuffer, int stride=0) const
 Calculates the transformed vertex data.
virtual int calculateVerticesAndNormals (CalSubmesh *pSubmesh, float *pVertexBuffer, int stride=0) const
 Calculates the transformed vertex data.
virtual int calculateVerticesNormalsAndTexCoords (CalSubmesh *pSubmesh, float *pVertexBuffer, int NumTexCoords=1) const
 Calculates the transformed vertex data.

Member Function Documentation

int CalPhysiqueDualQuat::calculateNormals ( CalSubmesh *  pSubmesh,
float *  pNormalBuffer,
int  stride = 0 
) const [virtual]

Calculates the transformed normal data.

This function calculates and returns the transformed normal data of a specific submesh.

Parameters:
pSubmeshA pointer to the submesh from which the normal data should be calculated and returned.
pNormalBufferA pointer to the user-provided buffer where the normal data is written to.
Returns:
The number of normals written to the buffer.

Reimplemented from CalPhysique.

int CalPhysiqueDualQuat::calculateVertices ( CalSubmesh *  pSubmesh,
float *  pVertexBuffer,
int  stride = 0 
) const [virtual]

Calculates the transformed vertex data.

This function calculates and returns the transformed vertex data of a specific submesh.

Parameters:
pSubmeshA pointer to the submesh from which the vertex data should be calculated and returned.
pVertexBufferA pointer to the user-provided buffer where the vertex data is written to.
Returns:
The number of vertices written to the buffer.

Reimplemented from CalPhysique.

int CalPhysiqueDualQuat::calculateVerticesAndNormals ( CalSubmesh *  pSubmesh,
float *  pVertexBuffer,
int  stride = 0 
) const [virtual]

Calculates the transformed vertex data.

This function calculates and returns the transformed vertex and the transformed normal datadata of a specific submesh.

Parameters:
pSubmeshA pointer to the submesh from which the vertex data should be calculated and returned.
pVertexBufferA pointer to the user-provided buffer where the vertex data is written to.
Returns:
The number of vertices written to the buffer.

Reimplemented from CalPhysique.

int CalPhysiqueDualQuat::calculateVerticesNormalsAndTexCoords ( CalSubmesh *  pSubmesh,
float *  pVertexBuffer,
int  NumTexCoords = 1 
) const [virtual]

Calculates the transformed vertex data.

This function calculates and returns the transformed vertex, the transformed normal data and the texture coords of a specific submesh.

Parameters:
pSubmeshA pointer to the submesh from which the vertex data should be calculated and returned.
pVertexBufferA pointer to the user-provided buffer where the vertex data is written to.
NumTexCoordsA integer with the number of texture coords
Returns:
The number of vertices written to the buffer.

Reimplemented from CalPhysique.


The documentation for this class was generated from the following files:

Generated by The Cal3D Team with Doxygen 1.7.3