C4 Engine
C4 Engine API Documentation

class Geometry

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

class Geometry : public RenderableNode, public Observable<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.
Constructor

Geometry(GeometryType type);

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 Mesh class and GeometryObject class.

A geometry node can be a generic geometry, a type of primitive geometry, a chunk of voxel terrain, or a piece of a water surface. See the node class hierarchy for a diagram showing the relationships among these types.
Base Classes
RenderableNode A Geometry node is a renderable scene graph node.
Observable<Geometry> A geometry node posts an event when its detail level changes.
See Also

Mesh

GeometryObject

MaterialObject

Wiki Articles

Geometries