From 740cf89122b1010da4db21fb404f483c2f7a019f Mon Sep 17 00:00:00 2001 From: Bottinator22 <59987380+Bottinator22@users.noreply.github.com> Date: Sat, 28 Dec 2024 20:04:19 -0800 Subject: [PATCH] Update StarRenderer_opengl.hpp --- source/application/StarRenderer_opengl.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/application/StarRenderer_opengl.hpp b/source/application/StarRenderer_opengl.hpp index 36b8354..79e5400 100644 --- a/source/application/StarRenderer_opengl.hpp +++ b/source/application/StarRenderer_opengl.hpp @@ -25,6 +25,9 @@ public: void loadEffectConfig(String const& name, Json const& effectConfig, StringMap const& shaders) override; void setEffectParameter(String const& parameterName, RenderEffectParameter const& parameter) override; + void setEffectScriptableParameter(String const& effectName, String const& parameterName, RenderEffectParameter const& parameter) override; + Maybe getEffectScriptableParameter(String const& effectName, String const& parameterName) override; + Maybe getEffectScriptableParameterType(String const& effectName, String const& parameterName) override; void setEffectTexture(String const& textureName, ImageView const& image) override; void setScissorRect(Maybe const& scissorRect) override; @@ -191,6 +194,7 @@ private: GLuint program = 0; Json config; StringMap parameters; + StringMap scriptables; // scriptable parameters which can be changed when the effect is not loaded StringMap textures; StringMap attributes;