summaryrefslogtreecommitdiff
path: root/gfx/renderable.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-08-18 16:11:39 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-08-18 16:11:39 +0100
commit0b8b0af99ed1ac00fc2ae78beb0fe6f9f24582fb (patch)
tree92d328412f9f030afb87e482e8990ec148de013f /gfx/renderable.h
parentPopulate GameState::assets in appropriate tests (diff)
downloadilt-0b8b0af99ed1ac00fc2ae78beb0fe6f9f24582fb.tar.bz2
ilt-0b8b0af99ed1ac00fc2ae78beb0fe6f9f24582fb.tar.xz
ilt-0b8b0af99ed1ac00fc2ae78beb0fe6f9f24582fb.zip
Add updateStencil to Renderable interface
Diffstat (limited to 'gfx/renderable.h')
-rw-r--r--gfx/renderable.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx/renderable.h b/gfx/renderable.h
index e126fff..83522e3 100644
--- a/gfx/renderable.h
+++ b/gfx/renderable.h
@@ -4,6 +4,7 @@
class SceneShader;
class ShadowMapper;
+class ShadowStenciller;
class Renderable {
public:
@@ -14,4 +15,6 @@ public:
virtual void render(const SceneShader & shader) const = 0;
virtual void lights(const SceneShader & shader) const;
virtual void shadows(const ShadowMapper & shadowMapper) const;
+
+ virtual void updateStencil(const ShadowStenciller & lightDir) const;
};