void mysearch(float x1, float y1, float x2, float y2) {

	if (g_proutes == NULL) {	   
		return;
	}
	
	//std::cout << "I see routes..." << std::endl;
	const vertex_id start = g_proutes->get_vertex_by_coord(vis_coord(x1, y1));
	const vertex_id end = g_proutes->get_vertex_by_coord(vis_coord(x2, y2));
	g_orig_path.clear();
	g_path.clear();
	//std::cout << x1 << " " << y1 << " " << x2 << " " << y2 << std::endl;	
	g_proutes->get_path(start, end, g_orig_path);

	g_path.resize(g_orig_path.size() * 2);
	//std::cout << "starting giving " << g_orig_path.size() << " of them..."<< std::endl;
	//std::cout << x1 << " " << y1 << " " << x2 << " " << y2 << std::endl;
	//std::cout << start << " " << end << std::endl;
	for (size_t i = 0; i < g_orig_path.size(); ++i)
	{
	    g_path[i * 2 + 0] = static_cast<float>(g_orig_path[i].x);
	    g_path[i * 2 + 1] = static_cast<float>(g_orig_path[i].y);
		//std::cout << static_cast<float>(g_orig_path[i].x) << " " <<
		//			 static_cast<float>(g_orig_path[i].y) << std::endl;
	}

}