public RenderableIdentity(List <GeometricObject> identity, ColorPackage colorPackage = null, NormalPackage normalPackage = null) { this._identity = identity; this._colorPackage = colorPackage; this._normalPackage = normalPackage; this._jointTransforms = new Dictionary <ObjectModel.ComponentKey, JointTransform>(); this._vertices = new List <Vertex>(); this._polygonMode = GeometricObject.PolygonMode.Invalid; }
public RenderableObject(SealedTransformableObject sealedTransformableObject, ColorPackage colorPackage = null , NormalPackage normalPackage = null, MaterialPackage materialPackage = null) { this.SealedObject = sealedTransformableObject; this.ColorPack = colorPackage; this.NormalPack = normalPackage; this.MaterialPack = materialPackage; this._identities = new Dictionary <ObjectModel.ComponentKey, RenderableIdentity>(); this._transformableKeys = new Dictionary <Transformable, ObjectModel.ComponentKey>(); this._materialKeys = new Dictionary <Material, ObjectModel.ComponentKey>(); }
public void SetIdentity(List <GeometricObject> identity, ColorPackage colorPackage = null, NormalPackage normalPackage = null) { _identity = identity; _colorPackage = colorPackage; _normalPackage = normalPackage; }