Example #1
0
        public override void Draw(IVertexAllocator vertexAllocator)
        {
            base.Draw(vertexAllocator);

            foreach (var c in Children)
            {
                c.Draw(vertexAllocator);
            }
        }
Example #2
0
        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));
            }
        }
Example #3
0
 public virtual void Draw(IVertexAllocator vertexAllocator)
 {
 }