Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/application/StarRenderer.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-30 05:55:41 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-30 05:55:41 +1000
commitfd5247321f36e7cb50dd90cb9bd1b5d60a3a289f (patch)
tree8603fa144341728da19da8df5d6790be792ceef1 /source/application/StarRenderer.hpp
parentd5fbd2001b0ad3591a7f969dfd75c809ab55b40e (diff)
Split world & interface shaders
Diffstat (limited to 'source/application/StarRenderer.hpp')
-rw-r--r--source/application/StarRenderer.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/application/StarRenderer.hpp b/source/application/StarRenderer.hpp
index 908f121..58c1c27 100644
--- a/source/application/StarRenderer.hpp
+++ b/source/application/StarRenderer.hpp
@@ -135,13 +135,15 @@ public:
// specific to each type of renderer, so it will be necessary to key the
// configuration off of the renderId string. This should not be called every
// frame, because it will result in a recompile of the underlying shader set.
- virtual void setEffectConfig(Json const& effectConfig, StringMap<String> const& shaders) = 0;
+ virtual void loadEffectConfig(String const& name, Json const& effectConfig, StringMap<String> const& shaders) = 0;
// The effect config will specify named parameters and textures which can be
// set here.
virtual void setEffectParameter(String const& parameterName, RenderEffectParameter const& parameter) = 0;
virtual void setEffectTexture(String const& textureName, Image const& image) = 0;
+ virtual bool switchEffectConfig(String const& name) = 0;
+
// Any further rendering will be scissored based on this rect, specified in
// pixels
virtual void setScissorRect(Maybe<RectI> const& scissorRect) = 0;