// Copyright (C) 2021 Harry Godden (hgn) - All Rights Reserved
+// TODO: replace as much of this as possible
#include <stdio.h>
#include <stdlib.h>
-#include <dirent.h>
#include <stdint.h>
#include <string.h>
#include <stdarg.h>
-#include <ctype.h>
#include <math.h>
#include "glad/glad.h"
#define STB_DS_IMPLEMENTATION
#include "stb/stb_ds.h"
-//#define STB_IMAGE_IMPLEMENTATION
-//#include "stb/stb_image.h"
#define QOI_IMPLEMENTATION
#include "phoboslab/qoi.h"
#include "vg/vg_ui.h"
#include "vg/vg_console.h"
#include "vg/vg_debug.h"
-
-#ifdef VG_STEAM
#include "vg/vg_steamworks.h"
-#endif
// Engine main
// ===========================================================================================================
static void vg_init( int argc, char *argv[], const char *window_name )
{
-#ifdef VG_STEAM
// Initialize steamworks
if( !sw_init() )
return;
-#endif
// Context creation
// ==========================================================================================================================
vg_register();
vg_register_exit( &vg_free, "vg_free" );
+ vg_register_exit( &sw_free_opengl, "steamworks (opengl)" );
if( vg_shaders_compile() )
{
v2_copy( (v2f){ 0.0f, 0.0f }, vg_mouse_wheel );
glfwPollEvents();
-
- #ifdef VG_STEAM
sw_event_loop();
- #endif
vg_time_last = vg_time;
vg_time = glfwGetTime();