Reworked the gui to use GUECS now so lots of code soon to die.
This commit is contained in:
parent
e78340a0cd
commit
70c2ce7d51
9 changed files with 97 additions and 38 deletions
|
@ -18,10 +18,6 @@ enum class Value {
|
|||
LIGHT_LIGHT, WHITE, TRANSPARENT
|
||||
};
|
||||
|
||||
|
||||
constexpr int FPS=30;
|
||||
constexpr int X_DIM = 1920 / 2;
|
||||
constexpr int Y_DIM = 1080 / 2;
|
||||
constexpr int TEXT_SIZE = 48;
|
||||
constexpr Value TEXT_COLOR = Value::LIGHT_LIGHT;
|
||||
constexpr int Y_LINES = 23;
|
||||
|
@ -35,6 +31,7 @@ enum class Button {
|
|||
};
|
||||
|
||||
class SFMLBackend {
|
||||
public:
|
||||
sf::ContextSettings settings;
|
||||
sf::RenderWindow window;
|
||||
std::chrono::time_point<std::chrono::system_clock> clock_start;
|
||||
|
@ -45,7 +42,6 @@ class SFMLBackend {
|
|||
GameEngine &game;
|
||||
textures::SpriteTexture current_face;
|
||||
|
||||
public:
|
||||
SFMLBackend(GameEngine &g);
|
||||
|
||||
// prevent copy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue