Added settings to CMake

This commit is contained in:
2021-08-14 07:51:46 -07:00
parent 98b50f5987
commit e7f6e356e0
9 changed files with 78 additions and 30 deletions

View File

@ -15,8 +15,6 @@
/** Describes the current game */
typedef struct {
char *name;
/** Engine for the game */
engine_t engine;

View File

@ -13,9 +13,6 @@
#include "../../vn/vnscene.h"
#include "pokerui.h"
/** Name of the Poker Game */
#define POKER_GAME_NAME "Dawn Poker Game"
typedef struct {
/** Poker Game State */
poker_t poker;

View File

@ -6,11 +6,15 @@
#pragma once
// Settings
#include "settings.h"
#include "config.h"
// Static Libs
#include <cglm/cglm.h>
#include <glad/glad.h>
#if SETTING_PLATFORM == SETTING_PLATFORM_GLFW
#include <glad/glad.h>
#endif
#include <stb_image.h>
#include <stb_truetype.h>

View File

@ -11,4 +11,10 @@
#define SETTING_GAME_DAWN 2
// Settings
#define SETTING_GAME SETTING_GAME_POKER
#define SETTING_GAME SETTING_GAME_POKER
// Compiler setting fallbacks
#ifndef SETTING_PLATFORM
#error Missing platform setting from compiler.
#endif