Added settings to CMake
This commit is contained in:
@ -15,8 +15,6 @@
|
||||
|
||||
/** Describes the current game */
|
||||
typedef struct {
|
||||
char *name;
|
||||
|
||||
/** Engine for the game */
|
||||
engine_t engine;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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
|
Reference in New Issue
Block a user