public override void Draw(IVertexAllocator vertexAllocator) { base.Draw(vertexAllocator); foreach (var c in Children) { c.Draw(vertexAllocator); } }
public override void Draw(IVertexAllocator vertexAllocator) { base.Draw(vertexAllocator); if (vertexAllocator.BeginBatch(ref batch, this, DrawType.Triangles, 6)) { batch.Add(new Vector2(0, 1)); batch.Add(new Vector2(0, 0)); batch.Add(new Vector2(1, 0)); batch.Add(new Vector2(0, 1)); batch.Add(new Vector2(1, 0)); batch.Add(new Vector2(1, 1)); } }
public virtual void Draw(IVertexAllocator vertexAllocator) { }