diff options
Diffstat (limited to 'source/application/StarRenderer.hpp')
-rw-r--r-- | source/application/StarRenderer.hpp | 4 |
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; |