aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2021-05-28 21:02:26 -0400
committerJon Santmyer <jon@jonsantmyer.com>2021-05-28 21:02:26 -0400
commit51682452fad8ca99d9085f46a0572dab12a6a991 (patch)
treec7567b6448dcfba0351a88e13007f3b1f3333790 /include
parente937c2bfc72d560ce285f49e4eb8fb7036fed3dd (diff)
downloadpostmodern-51682452fad8ca99d9085f46a0572dab12a6a991.tar.gz
postmodern-51682452fad8ca99d9085f46a0572dab12a6a991.tar.bz2
postmodern-51682452fad8ca99d9085f46a0572dab12a6a991.zip
transition to boxii-based rendering
Diffstat (limited to 'include')
-rw-r--r--include/pausescreen.h3
-rw-r--r--include/screen.h9
2 files changed, 5 insertions, 7 deletions
diff --git a/include/pausescreen.h b/include/pausescreen.h
index c3c1a43..586d4bf 100644
--- a/include/pausescreen.h
+++ b/include/pausescreen.h
@@ -22,6 +22,9 @@ public:
PauseScreen();
~PauseScreen();
+ void activate() override;
+ void deactivate() override;
+
void update() override;
};
diff --git a/include/screen.h b/include/screen.h
index 6896b72..c379483 100644
--- a/include/screen.h
+++ b/include/screen.h
@@ -10,20 +10,15 @@
class Screen {
private:
- bool m_redraw;
protected:
- std::unordered_map<std::string, std::shared_ptr<Boxii::Window>> m_windows;
- std::deque<std::weak_ptr<Boxii::Window>> m_order;
public:
Screen() {}
virtual ~Screen() {}
- void addWindow(const std::string &key, std::shared_ptr<Boxii::Window> value);
+ virtual void activate() {}
+ virtual void deactivate() {}
virtual void update() {}
- void render();
-
- void setRedraw() { m_redraw = true; }
};
#endif