Public Member Functions | |
| void | SetTransitionSpeed (float pSpeed) |
| void | SetAnimationSpeed (float pSpeed) |
| char * | GetMeshName () |
| Return the name of the loaded 3d Mesh. | |
| unsigned int | GetCurrentSequence () |
| Return the number of the sequence that is being rendered at this moment. | |
| int | GetNumSequences () |
| Return the number of sequence animations of the 3d Mesh. | |
| float | GetAnimationSpeed () |
| Return the animation speed value. | |
| float | GetTransitionSpeed () |
| Return the transition speed value. | |
Friends | |
| class | IND_Render |
| class | IND_3dMeshManager |
| void IND_3dMesh::SetTransitionSpeed | ( | float | pSpeed | ) |
Parameters:
When IndieLib is rendering an animation sequence of a 3d Mesh, if you change the animation sequence (using IND_Entity3d::SetSequence()) the change will not be abruptly. IndieLib will fade out the effect of the first animation and fade in the second.
This function sets the animation speed of this transition animation. The default value is 0.25f. For speed up the transition choose values between 0.25f and 0.0f. The faster transition possible is 0.0f. In order to slow down the animation speed, choose values higher than 0.25f, the higher the value, the slower the animation.
Default: 0.25f
| void IND_3dMesh::SetAnimationSpeed | ( | float | pSpeed | ) |
Parameters:
This function sets the animation speed when changing from one sequence to another. The default value is 1.0f. For speed up the animation choose values between 1.0f and 0.0f. The faster animation possible is 0.0f. In order to slow down the animation speed, choose values higher than 1.0f, the higher the value, the slower the animation.
Default: 1.0f
1.5.4