TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class ModelPart in Tinman.Engine.Models

Default implementation of the IModelPart interface.

sealed class ModelPart implements IModelPart

Public / Attributes

Batch

The primitive batch of this model in the geometry buffer.

public property Batch { get set }
type PrimitiveBatch
value The primitive batch or None.
implements IModelPart.Batch

See also:

IModelPart.Geometry

Flags

The behaviour flags of this model part.

public property Flags { get set }
type ModelPartFlags
value The model part flags.
implements IModelPart.Flags

Geometry

The geometry of this model.

public property Geometry { get set }
type IModelGeometry
value The geometry of the model part or null if none.
implements IModelPart.Geometry

Remarks:

IModelGeometry objects may be shared between model parts.

See also:

IModelPart.Batch

Material

The material of this model.

public property Material { get set }
type IMaterial
value The material or null if none.
implements IModelPart.Material

Remarks:

IModelGeometry objects may be shared between model parts.

Public / Constructors

ModelPart

Creates a new instance of ModelPart.

public constructor ModelPart ()

Creates a new instance of ModelPart.

public constructor ModelPart (IModelPart other)
params other [not-null] The other IModelPart to copy from.

Creates a new instance of ModelPart.

public constructor ModelPart (IModelGeometry geometry, PrimitiveBatch batch, IMaterial material = null, ModelPartFlags flags = ModelPartFlags.FrontFaces)
params geometry Initial value for Geometry.
  batch Initial value for Batch.
  material Initial value for Material. Defaults to null.
  flags Initial value for Flags. Defaults to FrontFaces.

Public / Methods

Validate

Validates the state of this object.

public method Validate (Validator validator)
params validator [not-null] The validator object.
implements IValidatable.Validate