C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

GeometryLevel::CopyGeometryLevel

Defined in:  C4GeometryLevel.h
Copies the contents of a geometry level.
Prototype

void CopyGeometryLevel(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 CopyGeometryLevel 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 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.
See Also

GeometryLevel::CopyRigidGeometryLevel