summaryrefslogtreecommitdiff
path: root/ui/uiComponent.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-12-18 19:28:54 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-18 19:28:54 +0000
commitbcdc5c98b356d926939b226a3962d97763295d3b (patch)
treeb56079b97c51e2d457dc68ba3f7ce1cfa867c5d9 /ui/uiComponent.h
parentNeed a way to select the UI shader (diff)
downloadilt-bcdc5c98b356d926939b226a3962d97763295d3b.tar.bz2
ilt-bcdc5c98b356d926939b226a3962d97763295d3b.tar.xz
ilt-bcdc5c98b356d926939b226a3962d97763295d3b.zip
Window handles UIComponent rendering
Diffstat (limited to 'ui/uiComponent.h')
-rw-r--r--ui/uiComponent.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/uiComponent.h b/ui/uiComponent.h
new file mode 100644
index 0000000..cd21de3
--- /dev/null
+++ b/ui/uiComponent.h
@@ -0,0 +1,12 @@
+#ifndef UICOMPONENT_H
+#define UICOMPONENT_H
+
+class UIShader;
+
+class UIComponent {
+public:
+ virtual ~UIComponent() = default;
+ virtual void render(const UIShader &) const = 0;
+};
+
+#endif