Ejemplo n.º 1
0
 public void Deallocate(VertexInfo vertexInfo)
 {
     lock (deallocatedSpaces)
     {
         if (!deallocatedSpaces.TryGetValue(vertexInfo.Count, out Stack <int> offsets))
         {
             offsets = new Stack <int>();
             deallocatedSpaces.Add(vertexInfo.Count, offsets);
         }
         offsets.Push(vertexInfo.Offset);
     }
 }
Ejemplo n.º 2
0
 public PolygonObject(PPDDevice device, ImageResourceBase imageResource, Vertex.VertexInfo vertex) : base(device)
 {
     this.imageResource = imageResource;
     this.vertex        = vertex;
 }