summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneProvider.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-11-27 13:09:34 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-11-27 13:09:34 +0000
commitf43b88dfe55d107541562da04117e2929a89d3f2 (patch)
tree4d1ff7181d21a72f11aa90d5a4225bbce0561bb7 /gfx/gl/sceneProvider.h
parent SceneRenderer is a graphics component, not a UI one (diff)
downloadilt-f43b88dfe55d107541562da04117e2929a89d3f2.tar.bz2
ilt-f43b88dfe55d107541562da04117e2929a89d3f2.tar.xz
ilt-f43b88dfe55d107541562da04117e2929a89d3f2.zip
Split SceneProvider out
Diffstat (limited to 'gfx/gl/sceneProvider.h')
-rw-r--r--gfx/gl/sceneProvider.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gfx/gl/sceneProvider.h b/gfx/gl/sceneProvider.h
new file mode 100644
index 0000000..a966f9c
--- /dev/null
+++ b/gfx/gl/sceneProvider.h
@@ -0,0 +1,12 @@
+#pragma once
+
+class SceneRenderer;
+class SceneShader;
+
+class SceneProvider {
+public:
+ virtual ~SceneProvider() = default;
+ virtual void content(const SceneShader &) const = 0;
+ virtual void environment(const SceneShader &, const SceneRenderer &) const;
+ virtual void lights(const SceneShader &) const = 0;
+};