-
- ui_resolve( &ui_global_ctx );
-
- m3x3f view = M3X3_IDENTITY;
- m3x3_translate( view, (v3f){ -1.0f, 1.0f, 0.0f } );
- m3x3_scale( view, (v3f){ 1.0f/((float)vg_window_x*0.5f), -1.0f/((float)vg_window_y*0.5f), 1.0f } );
- vg_lines_drawall( (float*)view );
-
- ui_draw( &ui_global_ctx );
+}
+
+static void vg_debugtools_draw(void)
+{
+ sfx_internal_debug_overlay();
+}
+
+static void vg_debugtools_setup(void)
+{
+ for( int i = 0; i < vg_list_size( debug_cvars ); i ++ )
+ {
+ vg_convar_push( debug_cvars[i] );
+ }