diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-27 13:09:34 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-27 13:09:34 +0000 |
commit | f43b88dfe55d107541562da04117e2929a89d3f2 (patch) | |
tree | 4d1ff7181d21a72f11aa90d5a4225bbce0561bb7 /gfx/gl/sceneRenderer.h | |
parent | SceneRenderer is a graphics component, not a UI one (diff) | |
download | ilt-f43b88dfe55d107541562da04117e2929a89d3f2.tar.bz2 ilt-f43b88dfe55d107541562da04117e2929a89d3f2.tar.xz ilt-f43b88dfe55d107541562da04117e2929a89d3f2.zip |
Split SceneProvider out
Diffstat (limited to 'gfx/gl/sceneRenderer.h')
-rw-r--r-- | gfx/gl/sceneRenderer.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/gfx/gl/sceneRenderer.h b/gfx/gl/sceneRenderer.h index f40b894..736b15a 100644 --- a/gfx/gl/sceneRenderer.h +++ b/gfx/gl/sceneRenderer.h @@ -1,22 +1,15 @@ #pragma once -#include "gfx/gl/camera.h" -#include "gfx/gl/program.h" -#include "gfx/gl/sceneShader.h" -#include "lib/glArrays.h" +#include "camera.h" +#include "glArrays.h" +#include "program.h" +#include "sceneProvider.h" +#include "sceneShader.h" #include <functional> #include <glm/fwd.hpp> class SceneRenderer { public: - 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; - }; - explicit SceneRenderer(glm::ivec2 size, GLuint output); void render(const SceneProvider &) const; |