Exemple #1
0
        /// <summary>
        /// Render the navigation HUD and the trajectory on the graphics device.
        /// The graphics device must be ready, otherwise
        /// the method will throw an exception.
        /// </summary>
        /// <param name="camera">Camera 4d transform matrix.</param>
        public override void Render(double[][] camera)
        {
            RefVehicle.Render(camera);

            if (RenderAllParticles)
            {
                foreach (var particle in VehicleParticles)
                {
                    particle.RenderTrajectory(camera, Color.Blue);
                }
            }
            else
            {
                RenderTrajectory(camera);
            }

            RenderMap(camera);
        }
Exemple #2
0
 /// <summary>
 /// Render the navigation HUD and the trajectory on the graphics device.
 /// </summary>
 /// <remarks>
 /// The graphics device must be ready, otherwise
 /// the method will throw an exception.
 /// </remarks>
 /// <param name="camera">Camera 4d transform matrix.</param>
 public virtual void Render(double[][] camera)
 {
     RenderMap(camera);
     RenderTrajectory(camera);
     RefVehicle.Render(camera);
 }
Exemple #3
0
 /// <summary>
 /// Render the navigation HUD and the trajectory on the graphics device.
 /// The graphics device must be ready, otherwise
 /// the method will throw an exception.
 /// </summary>
 /// <param name="camera">Camera 4d transform matrix.</param>
 public override void Render(double[][] camera)
 {
     RefVehicle.Render(camera);
     RenderTrajectory(camera);
     RenderMap(camera);
 }