next up previous contents index
Next: Transform Functions Up: The Robot Previous: Trace Functions

Visualization Functions

The visualization is the slower process of the simulator. To accelerate it some functions are provided to select the visualization interval, or what is the same, the number of time slices between to consecutive refresh of the robot display window.



void visualize_each (unsigned int tick,t_robot *r)
 

Sets the visualization interval. It is advisable to set a large visualization interval if we want the simulator to work fast.



unsigned int get_visualize_interval (t_robot *r)
 

Returns the current visualization interval.



void show_robot (t_robot *r)
 

Forces the refresh the robot display window.



Josep M. Porta Pleite
8/2/2000