#pragma once
#include "vg_platform.h"
+#include "vg_engine.h"
#include "vg_string.h"
#include "vg_vorbis.h"
{
bool use_3d, legacy_support_vg_msg1, log_source_info, steam_api,
custom_game_settings,
- release_mode, custom_shaders;
+ custom_shaders;
i32 fixed_update_hz;
}
vg_engine_default_config = {
.log_source_info = 1,
.steam_api = 0,
.custom_game_settings = 0,
- .release_mode = 0,
.custom_shaders = 0
};
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" );
#pragma once
-#if 0
-#include "vg_stdint.h"
-// Resource types
-typedef struct vg_tex2d vg_tex2d;
-
-struct vg_achievement
-{
- int is_set;
- const char *name;
-};
-
-#define vg_static_assert _Static_assert
-#define VG_MUST_USE_RESULT __attribute__((warn_unused_result))
-
-
-#include <stdio.h>
-#include <string.h>
-#include <stdarg.h>
-#include <ctype.h>
-#include <math.h>
-#include <assert.h>
-#include <setjmp.h>
-#include <sys/time.h>
-#include <math.h>
-#include <stdio.h>
-#include <errno.h>
-#include <stdlib.h>
-#endif
-
#include <stdlib.h>
#include <stdint.h>
/* anything compiled against VG shall implement this function somewhere. */
void vg_fatal_error( const char *fmt, ... );
+#define VG_ASSERT( ITEM, ... ) \
+ if( !( ITEM ) ) { \
+ vg_fatal_error( "Assertion failed: " VG_LOG_MCSTR(ITEM) "\n" \
+ VG_LOG_WHERE ); \
+ }
+
#define VG_MIN( A, B ) ((A)<(B)?(A):(B))
#define VG_MAX( A, B ) ((A)>(B)?(A):(B))
#define vg_list_size( A ) (sizeof(A)/sizeof(A[0]))
#pragma once
+#include "vg/vg_platform.h"
+
/*
* Copyright (C) 2021-2024 Mt.ZERO Software - All Rights Reserved
*
#pragma once
+#include "vg_m.h"
+#include "vg_rigidbody.h"
/* TODO: Get rid of this! */
#define VG_MAX_CONTACTS 256