X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_build.h;h=965f14cac3941c73e687985360410d581b5008a3;hb=HEAD;hp=9e5d9a7dcab17db3bead2b3a63c5834db6cd3b71;hpb=3b14f3dcd5bf9dd3c85144f2123d667bfa4bb63f;p=vg.git diff --git a/vg_build.h b/vg_build.h index 9e5d9a7..b40ecd3 100644 --- a/vg_build.h +++ b/vg_build.h @@ -9,6 +9,7 @@ #include "vg_opt.h" #include "vg_log.h" #include "vg_string.h" +#include "vg_build_font.h" /* we dont free dynamic vg_strs in this program. so, we dont care.. */ const char *__asan_default_options() { return "detect_leaks=0"; } @@ -433,7 +434,7 @@ struct vg_engine_config { bool use_3d, legacy_support_vg_msg1, log_source_info, steam_api, custom_game_settings, - release_mode; + custom_shaders; i32 fixed_update_hz; } vg_engine_default_config = { @@ -443,11 +444,14 @@ vg_engine_default_config = { .log_source_info = 1, .steam_api = 0, .custom_game_settings = 0, - .release_mode = 0 + .custom_shaders = 0 }; void vg_add_engine( struct vg_project *proj, struct vg_engine_config *config ) { + /* building assets */ + vg_build_default_font(); + if( !config ) config = &vg_engine_default_config; vg_str config_string; vg_strnull( &config_string, NULL, -1 ); @@ -461,8 +465,8 @@ void vg_add_engine( struct vg_project *proj, struct vg_engine_config *config ) vg_strcat( &config_string, "-DVG_LOG_SOURCE_INFO \\\n" ); if( config->custom_game_settings ) vg_strcat( &config_string, "-DVG_GAME_SETTINGS \\\n" ); - if( config->custom_game_settings ) - vg_strcat( &config_string, "-DVG_RELEASE \\\n" ); + if( config->custom_shaders ) + vg_strcat( &config_string, "-DVG_CUSTOM_SHADERS \\\n" ); vg_strcat( &config_string, "\\\n" );