projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build scripts
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_render.c
diff --git
a/world_render.c
b/world_render.c
index ea582356c4cee9d70199e4b94ac9739cd18fcc73..4cac23f6a2418446cdc4ceee2b8ac412bff78747 100644
(file)
--- a/
world_render.c
+++ b/
world_render.c
@@
-1350,20
+1350,21
@@
static f32 *skybox_prop_location( world_instance *world, i32 index ){
}
}
}
}
-void imgui_world_light_edit( world_instance *world )
+void imgui_world_light_edit(
ui_context *ctx,
world_instance *world )
{
ui_rect panel = { vg.window_x-400, 0, 400, vg.window_y };
{
ui_rect panel = { vg.window_x-400, 0, 400, vg.window_y };
- ui_fill(
panel, ui_colour(
k_ui_bg+1 ) );
- ui_outline(
panel, 1, ui_colour(
k_ui_bg+7 ), 0 );
+ ui_fill(
ctx, panel, ui_colour( ctx,
k_ui_bg+1 ) );
+ ui_outline(
ctx, panel, 1, ui_colour( ctx,
k_ui_bg+7 ), 0 );
ui_rect_pad( panel, (ui_px[2]){ 8, 8 } );
ui_rect_pad( panel, (ui_px[2]){ 8, 8 } );
-
vg_ui.wants_mouse = 1
;
+
ui_capture_mouse(ctx, 1)
;
static i32 option_to_edit = 0;
static i32 option_to_edit = 0;
- ui_enum( panel, "option", skybox_setting_options, 5, &option_to_edit );
- ui_colourpicker( panel, "colour",
+ ui_enum(
ctx,
panel, "option", skybox_setting_options, 5, &option_to_edit );
+ ui_colourpicker(
ctx,
panel, "colour",
skybox_prop_location( world, option_to_edit ) );
skybox_prop_location( world, option_to_edit ) );
- if( ui_button( panel, "save tweaker file ('/tmp/tweaker.txt')\n" ) == 1 ){
+ if( ui_button( ctx, panel, "save tweaker file ('/tmp/tweaker.txt')\n" ) == 1 )
+ {
FILE *fp = fopen( "/tmp/tweaker.txt", "w" );
for( i32 i=0; i<5; i ++ ){
FILE *fp = fopen( "/tmp/tweaker.txt", "w" );
for( i32 i=0; i<5; i ++ ){