C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

GeometryLevel::CopyRigidGeometryLevel

Defined in:  C4GeometryLevel.h
Copies the contents of a geometry level and removes skinning data.
Prototype

void CopyRigidGeometryLevel(const GeometryLevel *geometryLevel, unsigned long exclusionMask = 0);

Parameters
geometryLevel The input geometry level.
exclusionMask A bit mask indicating which arrays should be excluded from the copy.
Description
The CopyRigidGeometryLevel function copies the contents of the geometry level specified by the geometryLevel parameter to the geometry level for which this function is called (the output level). The previous contents of the output geometry level are deleted.

If the input geometry level contains skinning data, then it is removed during the copy operation. The removed skinning data consists of the vertex weighting data, the bone hash array, and the inverse bind transform array.

If the exclusionMask parameter is not zero, then the position of the set bits correspond to the indexes of arrays that are excluded from the copy. For example, to prevent the edge array from being copied, the exclusionMask parameter should be 1 << kArrayEdge. The bone hash array and inverse bind transform array are always excluded regardless of the value of the exclusionMask parameter.
See Also

GeometryLevel::CopyGeometryLevel