Function openrailwaymap_exporter::app3d::init_with_graph
source · pub fn init_with_graph(graph: RailwayGraph)
Expand description
Initializes the Bevy application with a given RailwayGraph
.
This function sets up the Bevy application with the required plugins,
resources, and systems. It inserts the provided RailwayGraph
into the
AppResource
and starts the Bevy application.
Arguments
graph
- ARailwayGraph
to display in the application.