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); } }
public PolygonObject(PPDDevice device, ImageResourceBase imageResource, Vertex.VertexInfo vertex) : base(device) { this.imageResource = imageResource; this.vertex = vertex; }