You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
429 B
21 lines
429 B
2 weeks ago
|
#pragma once
|
||
|
#include "levelmanager.hpp"
|
||
|
#include <SFML/Graphics/RenderWindow.hpp>
|
||
|
|
||
|
namespace gui {
|
||
|
|
||
|
class MainUI {
|
||
|
public:
|
||
|
GameLevel $level;
|
||
|
sf::RenderWindow $window;
|
||
|
|
||
|
MainUI(GameLevel level) :
|
||
|
$level(level),
|
||
|
$window(sf::VideoMode({SCREEN_WIDTH, SCREEN_HEIGHT}), "Zed's Raycaster Thing")
|
||
|
{
|
||
|
$window.setVerticalSyncEnabled(VSYNC);
|
||
|
$window.setFramerateLimit(FRAME_LIMIT);
|
||
|
}
|
||
|
};
|
||
|
}
|