/// <summary> /// Initializes a new instance of the <see cref="GeometryBufferProxy{T}"/> class. /// </summary> /// <param name="modelGuid">The model unique identifier.</param> /// <param name="geometryGuid">The geometry unique identifier.</param> /// <param name="buffer">The buffer.</param> /// <param name="manager">The manager.</param> public GeometryBufferProxy(Guid modelGuid, Guid geometryGuid, IGeometryBufferModel buffer, IGeometryBufferManager manager) { this.ModelGuid = modelGuid; this.GeometryGuid = geometryGuid; this.manager = manager; this.BufferModel = buffer; }
/// <summary> /// Called when [geometry buffer changed]. /// </summary> /// <param name="buffer">The buffer.</param> protected virtual void OnGeometryBufferChanged(IGeometryBufferModel buffer) { }
private GeometryBufferProxy() { this.BufferModel = EmptyGeometryBufferModel.Empty; }
/// <summary> /// Initializes a new instance of the <see cref="GeometryBufferContainer"/> class. /// </summary> /// <param name="model">The model.</param> private GeometryBufferContainer(IGeometryBufferModel model) { buffer = Collect(model); }
protected override void OnGeometryBufferChanged(IGeometryBufferModel buffer) { billboardBuffer = buffer as IBillboardBufferModel; }