Esempio n. 1
0
        public uint AddBox(BoundingBox box, Color color, float thickness, bool warp)
        {
            if (VertexCount >= MaxVertexSpace)
            {
                return(0);
            }

            if (VertexCount + (int)Drawer3D.PrimitiveVertexCounts.Box >= MaxTriangles * 3)
            {
                Grow();
            }

            Drawer3D.WriteBox(box.Min, box.Max - box.Min, color, thickness, warp, VertexCount, Verticies);
            return(AddSegment((int)Drawer3D.PrimitiveVertexCounts.Box));
        }