コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <summary>
 /// Called when [geometry buffer changed].
 /// </summary>
 /// <param name="buffer">The buffer.</param>
 protected virtual void OnGeometryBufferChanged(IGeometryBufferModel buffer)
 {
 }
コード例 #3
0
 private GeometryBufferProxy()
 {
     this.BufferModel = EmptyGeometryBufferModel.Empty;
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 protected override void OnGeometryBufferChanged(IGeometryBufferModel buffer)
 {
     billboardBuffer = buffer as IBillboardBufferModel;
 }