C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

class Geometry

Defined in:  C4Geometries.h
The Geometry class represents a geometry node in a scene graph.
Definition

class Geometry : public Node, public Renderable, public ListElement<Geometry>

Member Functions
Geometry::GetGeometryType Returns the geometry type.
Geometry::GetMaterialCount Returns the number of material slots.
Geometry::SetMaterialCount Sets the number of material slots.
Geometry::GetMaterialObject Returns a material object.
Geometry::SetMaterialObject Sets a material object.
Geometry::GetPerspectiveExclusionMask Returns the perspective exclusion mask.
Geometry::SetPerspectiveExclusionMask Sets the perspective exclusion mask.
Constructor

Geometry(GeometryType type);

The constructor has protected access. A Geometry class can only exist as the base class for another class.
Description
The Geometry class serves as the base class for all geometrical nodes in the world. The geometrical information itself is stored in the associated GeometryObject class and GeometryLevel class.

A geometry node can be either a primitive geometry type, a generic mesh, or a chunk of voxel terrain. See the node class hierarchy for a diagram showing the relationships among these types.
Base Classes
Node A Geometry node is a scene graph node.
Renderable A geometry is a renderable object.
ListElement<Geometry> Used internally by the World Manager.
See Also
GeometryObject

GeometryLevel

MaterialObject