Table of Contents

Interface IFlyweight

Defines the contract for a Flyweight object. The flyweight stores only intrinsic (shared, immutable) state; extrinsic (per-instance) state is passed in via Operation(object).

public interface IFlyweight

Methods

Operation(object)

Performs an operation using the flyweight's intrinsic state combined with the supplied extrinsic state (e.g. world position, scale).

void Operation(object extrinsicState)

Parameters

extrinsicState object

Per-instance data that does not reside in the flyweight itself.