csr_target target;
- csr_create_target( &target, 1024, 1024, (v4f){ -1000.f, -1000.f, 1000.f, 1000.f } );
+ csr_create_target( &target, 1024, 1024 );
csr_rt_clear( &target );
csr_filter filter_layout =
.visgroup = NULL
};
- draw_vmf_group( &target, map, map->root, &filter_buyzone, NULL, NULL );
+ csr_filter filter_setup =
+ {
+ .classname = NULL,
+ .visgroup = NULL,
+ .compute_bounds_only = 1
+ };
+
+ draw_vmf_group( &target, map, map->root, &filter_setup, NULL, NULL );
+ csr_auto_fit( &target, 128.f );
+
+ draw_vmf_group( &target, map, map->root, NULL, NULL, NULL );
float *rgba_test = (float *)csr_malloc( 1024*1024*sizeof(float)*3 );