From 2d3b4040e103bef1a54d9071c863c026859f1a4b Mon Sep 17 00:00:00 2001 From: Peter Slattery Date: Tue, 9 Aug 2022 17:02:42 -0700 Subject: [PATCH] partitioning incenter editor specific code --- src_v2/lumenarium_first.h | 3 +-- src_v2/user_space/incenter_user_space.c | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src_v2/lumenarium_first.h b/src_v2/lumenarium_first.h index 779519f..e1037b8 100644 --- a/src_v2/lumenarium_first.h +++ b/src_v2/lumenarium_first.h @@ -114,9 +114,8 @@ void sculpture_updated(App_State* state, r32 scale, r32 led_size); #include "engine/output/lumenarium_output_uart.c" #include "engine/output/lumenarium_output_sacn.c" -internal void incenter_sculpture_visualizer_ui(App_State* state, Editor* ed); - #if defined(PLATFORM_SUPPORTS_EDITOR) +internal void incenter_sculpture_visualizer_ui(App_State* state, Editor* ed); # include "editor/lumenarium_editor_ui.c" # include "editor/lumenarium_editor_renderer.c" # include "editor/lumenarium_editor_sculpture_visualizer.c" diff --git a/src_v2/user_space/incenter_user_space.c b/src_v2/user_space/incenter_user_space.c index 343be10..2d1bda2 100644 --- a/src_v2/user_space/incenter_user_space.c +++ b/src_v2/user_space/incenter_user_space.c @@ -189,6 +189,7 @@ incenter_frame_prepare(App_State* state) } +#if defined(PLATFORM_SUPPORTS_EDITOR) internal void incenter_sculpture_visualizer_ui(App_State* state, Editor* ed) { @@ -204,6 +205,7 @@ incenter_sculpture_visualizer_ui(App_State* state, Editor* ed) ui_layout_pop(&ed->ui); } +#endif internal void incenter_frame(App_State* state)