28 lines
No EOL
640 B
C++
Executable file
28 lines
No EOL
640 B
C++
Executable file
#pragma once
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
#include "../../define.hpp"
|
|
#include "scenemanager.hpp"
|
|
#include "keyboard.hpp"
|
|
#include "mouse.hpp"
|
|
|
|
namespace asloengine
|
|
{
|
|
|
|
struct Settings
|
|
{
|
|
uint resolution_x = 640;
|
|
uint resolution_y = 480;
|
|
uint bit_depth = 24;
|
|
uint max_framerate = 60;
|
|
sf::Vector2i window_position = sf::Vector2i(0, 0);
|
|
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();
|
|
|
|
} |