/* graphics */
m4x4f pv;
+ enum quality_profile
+ {
+ k_quality_profile_high = 0,
+ k_quality_profile_low = 1,
+ }
+ quality_profile;
/* Gamepad */
GLFWgamepadstate gamepad;
#endif
VG_STATIC void vg_fatal_exit_loop( const char *error );
+VG_STATIC void vg_required( void *ptr, const char *path )
+{
+ if( !ptr )
+ {
+ vg_fatal_exit_loop( path );
+ }
+}
+
VG_STATIC void vg_ensure_engine_running(void)
{
vg.samples = VG_MAX( 0, VG_MIN( 8, atoi( arg ) ) );
}
- if( (arg = vg_long_opt_arg( "use-libc-malloc" )) )
+ if( vg_long_opt( "use-libc-malloc" ) )
{
vg_mem.use_libc_malloc = atoi( arg );
}
+
+ if( vg_long_opt( "high-performance" ) )
+ {
+ vg.quality_profile = k_quality_profile_low;
+ }
}
vg_alloc_quota();