|
wavelength 1.0.0
|
#include <vector>#include "math/key.h"#include "math/vector2.h"#include "math/vector3.h"#include "rnd/rndanimatable.h"#include "rnd/rndmesh.h"#include "rnd/rndparticlesys.h"#include "rnd/rndtransformable.h"#include "rnd/rndview.h"#include "script/dataarray.h"

Go to the source code of this file.
Classes | |
| struct | FloatKey |
| One key of a curve of floats, sorted by frame. More... | |
Functions | |
| void | DetachView (RndView *pParent, RndView *pChild) |
| Take a view out of the draws, the animations, the transforms, and the collisions of another. | |
| void | AttachView (RndView *pParent, RndView *pChild) |
| Add a view to the draws, the animations, and the transforms of another. | |
| void | SetFilterScale (RndAnimatable *pAnim, float fScale) |
| Change the rate of the scale-offset filter in the first slot of an animation, keeping the filtered frame of its current frame. | |
| void | Rotate (Vector2 *pPoint, float fAngle) |
| Turn a point about the origin. | |
| void | BuildTrackArc (std::vector< Vector2 > *pPoints, DataArray *pConfig) |
| Place the cross section points of the tracks along an arc that is symmetric about the Y axis. | |
| void | ResetXfmTree (RndTransformable *pRoot, bool bReset) |
| Give every transform under a transform the identity as its local transform. | |
| void | SetZModeTree (RndTransformable *pRoot, RndMesh::ZMode zMode, RndMesh::ZFunc zFunc) |
| Set the depth test of every mesh under a transform, recursively. | |
| void | ScaleTransKeys (const char *pszName, float fScale) |
| Scale the translation keys of a transform animation. | |
| void | ScaleKeys (std::vector< Key< Vector3 > > &keys, float fScale) |
| Scale the values of position keys. | |
| void | LoadFloatKeys (DataArray *pData, std::vector< FloatKey > *pKeys) |
| Read a curve of (value frame) pairs from a script array, replacing the keys and sorting them by frame. | |
| void | InterpBasis (const float *pFrom, const float *pTo, float *pOut, float fBlend) |
| Blend the rotations of two transforms through quaternions. | |
| void | ClearMeshSpheres (RndTransformable *pRoot) |
| Give every mesh under a transform a bounding sphere at the origin of radius 0, the mark of a mesh with no sphere, recursively. | |
| void | ScaleParticles (RndParticleSys *pSys, float fScale) |
| Scale the size and the force of the particles of a particle system. | |
| void | ScaleParticleTree (RndTransformable *pRoot, float fScale) |
| Scale every particle system of a transform tree with ScaleParticles(). | |
Take a view out of the draws, the animations, the transforms, and the collisions of another.
| pParent | The view to take the child out of. |
| pChild | The child, or null. |
Add a view to the draws, the animations, and the transforms of another.
| pParent | The view to add the child to. |
| pChild | The child, or null. |
| void SetFilterScale | ( | RndAnimatable * | pAnim, |
| float | fScale ) |
Change the rate of the scale-offset filter in the first slot of an animation, keeping the filtered frame of its current frame.
A warning is reported for an animation whose first filter is missing or is another kind.
| pAnim | The animation. |
| fScale | The new rate. |
| void Rotate | ( | Vector2 * | pPoint, |
| float | fAngle ) |
Turn a point about the origin.
| pPoint | The point, which receives the result. |
| fAngle | The angle, in radians. |
Place the cross section points of the tracks along an arc that is symmetric about the Y axis.
The configuration gives center_height, track_width, start_angle, angle_inc, and angle_inc_inc, the angles in degrees. The middle point sits at the centre height, and each point outward is one track width from the last, turned by an angle that grows by the increment.
| pPoints | The points, sized already. |
| pConfig | The configuration. |
| void ResetXfmTree | ( | RndTransformable * | pRoot, |
| bool | bReset ) |
Give every transform under a transform the identity as its local transform.
| pRoot | The transform. |
| bReset | Whether the transform itself is reset as well as the transforms under it. |
| void SetZModeTree | ( | RndTransformable * | pRoot, |
| RndMesh::ZMode | zMode, | ||
| RndMesh::ZFunc | zFunc ) |
Set the depth test of every mesh under a transform, recursively.
| pRoot | The transform. |
| zMode | The depth mode. |
| zFunc | The depth comparison. |
| void ScaleTransKeys | ( | const char * | pszName, |
| float | fScale ) |
Scale the translation keys of a transform animation.
| pszName | The animation, which must exist. |
| fScale | The scale. |
Scale the values of position keys.
The frames are unchanged. The name is inferred.
| keys | The keys. |
| fScale | The scale. |
Read a curve of (value frame) pairs from a script array, replacing the keys and sorting them by frame.
| pData | The array. |
| pKeys | Receives the keys. |
| void InterpBasis | ( | const float * | pFrom, |
| const float * | pTo, | ||
| float * | pOut, | ||
| float | fBlend ) |
Blend the rotations of two transforms through quaternions.
| pFrom | The transform at a blend of 0, four rows of four floats. |
| pTo | The transform at a blend of 1, four rows of four floats. |
| pOut | Receives the blended rotation, four rows of four floats. It may alias pFrom. |
| fBlend | The blend. |
| void ClearMeshSpheres | ( | RndTransformable * | pRoot | ) |
Give every mesh under a transform a bounding sphere at the origin of radius 0, the mark of a mesh with no sphere, recursively.
| pRoot | The transform. |
| void ScaleParticles | ( | RndParticleSys * | pSys, |
| float | fScale ) |
Scale the size and the force of the particles of a particle system.
| pSys | The particle system. |
| fScale | The scale. |
| void ScaleParticleTree | ( | RndTransformable * | pRoot, |
| float | fScale ) |
Scale every particle system of a transform tree with ScaleParticles().
| pRoot | The root of the tree, or null. |
| fScale | The scale. |