Added Scene Loading and Program Settings
This commit is contained in:
parent
881e6c70f2
commit
1bad863c5b
13 changed files with 91 additions and 43 deletions
|
|
@ -1,14 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include <SFML/Graphics.hpp>
|
||||
#include "../../define.hpp"
|
||||
#include "scenemanager.hpp"
|
||||
#include "keyboard.hpp"
|
||||
#include "mouse.hpp"
|
||||
|
||||
namespace asloengine
|
||||
{
|
||||
|
||||
void init(Scene *starting_scene);
|
||||
|
||||
struct Settings
|
||||
{
|
||||
uint resolution_x = 640;
|
||||
uint resolution_y = 480;
|
||||
uint bit_depth = 24;
|
||||
uint max_framerate = 60;
|
||||
bool vsync_enabled = true;
|
||||
bool fullscreen_enabled = false;
|
||||
};
|
||||
|
||||
void init(Scene *starting_scene, Settings _settings);
|
||||
Settings get_active_settings();
|
||||
void apply_settings(Settings _settings);
|
||||
void start_main_game_loop();
|
||||
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#define PROGRAM_NAME "Space Strategy"
|
||||
#define PROGRAM_VERSION "0.1.0"
|
||||
#define PROGRAM_INFO (std::string)PROGRAM_NAME + " v" + PROGRAM_VERSION
|
||||
#define PROGRAM_BUILD 0
|
||||
#define PROGRAM_CREATOR "Aslan2142"
|
||||
#define COPYRIGHT "Copyright 2019"
|
||||
#define RESOLUTION_X 1920
|
||||
#define RESOLUTION_Y 1080
|
||||
#define BIT_DEPTH 24
|
||||
#define MAX_FRAMERATE 60
|
||||
#define VSYNC_ENABLED true
|
||||
#define DEBUG
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <SFML/Graphics.hpp>
|
||||
#include "define.hpp"
|
||||
#include "../../define.hpp"
|
||||
|
||||
#ifdef DEBUG
|
||||
#define LOG(message) asloengine::log((std::string)"LOG: ", message)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue