summaryrefslogtreecommitdiff
path: root/application.h
diff options
context:
space:
mode:
Diffstat (limited to 'application.h')
-rw-r--r--application.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/application.h b/application.h
index f7ea563..8f1bb35 100644
--- a/application.h
+++ b/application.h
@@ -1,6 +1,8 @@
#ifndef APPLICATION_H
#define APPLICATION_H
+#include <string>
+
#include <SFML/Window.hpp>
#include "input.h"
@@ -10,9 +12,11 @@ class Application {
bool please_quit;
bool fullscreen;
+ std::string window_title;
+
protected:
- void create_window(unsigned int w, unsigned int h, bool fs = false);
- void init_window(unsigned int w, unsigned int h, bool fs = false);
+ void create_window(unsigned int w, unsigned int h, bool fs, const std::string& title);
+ void init_window(unsigned int w, unsigned int h, bool fs, const std::string& title);
virtual void event(const sf::Event& e);
virtual void event_keypress(Key::Code key);