Added Scene Loading and Program Settings

This commit is contained in:
Aslan2142 2019-08-29 20:18:48 +02:00
parent 881e6c70f2
commit 1bad863c5b
13 changed files with 91 additions and 43 deletions

View file

@ -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();
}