+ strcpy( vmf_name, base_name );
+
+ printf( "output_path: '%s'\nvmf_name: '%s'\n", output_path, vmf_name );
+
+
+ // Main
+
+ csr_target target;
+
+ csr_create_target( &target, resolution, resolution );
+ csr_rt_clear( &target );
+
+ // Compute bounds
+ csr_filter filter =
+ {
+ .classname = NULL,
+ .visgroup = NULL,
+ .compute_bounds_only = 1
+ };
+ draw_vmf_group( &target, map, map->root, &filter, NULL, NULL );
+ csr_auto_fit( &target, padding );
+ filter.compute_bounds_only = 0;
+
+ if( num_strings == 1 )
+ {
+ // Draw everything
+ draw_vmf_group( &target, map, map->root, NULL, NULL, NULL );
+ csr_rt_save_buffers( &target, output_path, "all" );
+ }
+ else
+ {
+ // Draw groups
+ for( int i = 1; i < num_strings; i ++ )
+ {
+ filter.visgroup = strings[ i ];
+
+ draw_vmf_group( &target, map, map->root, NULL, NULL, NULL );
+ csr_rt_save_buffers( &target, output_path, strings[i] );
+
+ csr_rt_clear( &target );
+ }
+ }