Skip to content

Commit

Permalink
add logging callback to nuklear samples
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jul 24, 2023
1 parent b2b11f5 commit 72c21b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions sapp/nuklear-images-sapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ static void init(void) {
__dbgui_setup(sapp_sample_count());
snk_setup(&(snk_desc_t){
.dpi_scale = sapp_dpi_scale(),
.logger.func = slog_func,
});

// create two simple images
Expand Down
3 changes: 2 additions & 1 deletion sapp/nuklear-sapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ void init(void) {
// use sokol-nuklear with all default-options (we're not doing
// multi-sampled rendering or using non-default pixel formats)
snk_setup(&(snk_desc_t){
.dpi_scale = sapp_dpi_scale()
.dpi_scale = sapp_dpi_scale(),
.logger.func = slog_func,
});
}

Expand Down

0 comments on commit 72c21b9

Please sign in to comment.