public void SubmitTexturedGeometryItem(GeometryItemTexture item) { if (this._geometryBatchTextured.Contains(item)) { return; } this._geometryBatchTextured.Add(item); }
public GeometryItemTexture GetTexturedGeometryItem() { GeometryItemTexture geometryItemTexture; if (this._freeGeometryBatch.Count > 0) { geometryItemTexture = this._freeGeometryBatchTextured.Dequeue(); } else { geometryItemTexture = new GeometryItemTexture() { temporary = true } }; geometryItemTexture.Clear(); return(geometryItemTexture); }
public void SubmitTexturedGeometry(GeometryItemTexture geo) => this._batcher.SubmitTexturedGeometryItem(geo);
private static int CompareTexturedGeometryReverseDepth( GeometryItemTexture a, GeometryItemTexture b) { return(b.depth.CompareTo(a.depth)); }
private static int CompareTexturedGeometryDepth(GeometryItemTexture a, GeometryItemTexture b) => a.depth.CompareTo(b.depth);