diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-12-29 15:29:20 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-29 15:29:20 +1100 |
commit | b953042e56f67c3e60391ed8911f7561c5ea609e (patch) | |
tree | 1d820dd92b439eb03611987c9730fc4f52f50152 /source/application/StarRenderer_opengl.hpp | |
parent | 75ff3cbba9b44a357af0e24ec99a0c28fcdf8d43 (diff) | |
parent | ec6c8f0c3c72cd7a9c9ea97721f12225cff42406 (diff) |
Merge pull request #158 from Bottinator22/main
Scriptable shader uniforms
Diffstat (limited to 'source/application/StarRenderer_opengl.hpp')
-rw-r--r-- | source/application/StarRenderer_opengl.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<String> 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<RenderEffectParameter> getEffectScriptableParameter(String const& effectName, String const& parameterName) override; + Maybe<VariantTypeIndex> getEffectScriptableParameterType(String const& effectName, String const& parameterName) override; void setEffectTexture(String const& textureName, ImageView const& image) override; void setScissorRect(Maybe<RectI> const& scissorRect) override; @@ -191,6 +194,7 @@ private: GLuint program = 0; Json config; StringMap<EffectParameter> parameters; + StringMap<EffectParameter> scriptables; // scriptable parameters which can be changed when the effect is not loaded StringMap<EffectTexture> textures; StringMap<GLuint> attributes; |