Made compilation actually work

This commit is contained in:
2022-02-27 09:49:06 -08:00
parent 2417e56c07
commit 25613d54a7
3 changed files with 5 additions and 2 deletions

View File

@ -13,7 +13,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
# Set some global flags # Set some global flags
add_compile_definitions( add_compile_definitions(
_CRT_SECURE_NO_WARNINGS=1 _CRT_SECURE_NO_WARNINGS=1
ASSET_PREFIX="assets/" ASSET_PREFIX="../assets/"
) )
# Do initial set up depending on the build target type. # Do initial set up depending on the build target type.

View File

@ -1,4 +1,4 @@
#version 300 es #version 330 core
#ifdef GL_ES #ifdef GL_ES
#else #else

View File

@ -31,6 +31,9 @@ bool gameInit(game_t *game) {
bool doneResize = false; bool doneResize = false;
bool gameUpdate(game_t *game, float delta) { bool gameUpdate(game_t *game, float delta) {
ASSERT_NOT_NULL(game);
ASSERT_GREATER_THAN(delta, 0);
// Let the engine do its thing. // Let the engine do its thing.
engineUpdateStart(&game->engine, delta); engineUpdateStart(&game->engine, delta);