convert all region/endregion directives to the comment signature used with editor plugins

This commit is contained in:
2025-06-30 09:26:17 -04:00
parent 74567ae98a
commit ff91e41da9
10 changed files with 81 additions and 187 deletions

View File

@ -6,7 +6,7 @@ import str "core:strings"
import sokol_app "thirdparty:sokol/app"
#region("Sokol App")
//region Sokol App
sokol_app_init_callback :: proc "c" () {
context = get_state().sokol_context
@ -230,9 +230,9 @@ sokol_app_event_callback :: proc "c" (sokol_event : ^sokol_app.Event)
}
}
#endregion("Sokol App")
//endregion Sokol App
#region("Sokol GFX")
//region Sokol GFX
sokol_gfx_alloc :: proc "c" ( size : uint, user_data : rawptr ) -> rawptr {
context = get_state().sokol_context
@ -277,4 +277,4 @@ sokol_gfx_log_callback :: proc "c" (
log_fmt( "%-80s %s::%v", cloned_msg, cloned_tag, line_nr, level = odin_level )
}
#endregion("Sokol GFX")
//endregion Sokol GFX

View File

@ -670,7 +670,7 @@ render_text_layer :: proc( screen_extent : Vec2, ve_ctx : ^ve.Context, render :
}
}
#region("Helpers")
//region Helpers
draw_shape :: proc(color : RGBAN, screen_size, position, scale : Vec2, zoom : f32, shape : ShapedText)
{
@ -890,4 +890,4 @@ render_set_view_space :: #force_inline proc( extent : Extents2 )
gp.project( -extent.x, extent.x, extent.y, -extent.y )
}
#endregion("Helpers")
//endregion Helpers