Exemple #1
0
        /// <summary>
        ///     Clears all the draw instances, so we don't draw the same as the past frame.
        /// </summary>
        private void CleanDrawInstances()
        {
            PolyLinesToDraw.Clear();

            DrawInstances[LineSegment].Clear();
            DrawInstances[Sphere].Clear();
            DrawInstances[Cube].Clear();
            DrawInstances[Disk].Clear();
            DrawInstances[Cylinder].Clear();
        }
Exemple #2
0
 /// <summary>
 ///     Draws a contiguous line joining the given points and using the specified color.
 /// </summary>
 /// <param name="points">The positions of the poly-line points in world space.</param>
 /// <param name="color">The color of the poly-line.</param>
 public void DrawPolyLine(Vector3[] points, Color color)
 {
     PolyLinesToDraw.TryAdd(color, new List <Vector3[]>());
     PolyLinesToDraw[color].Add(points);
 }