MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / onEnableOpenGLKnobValueChanged

Method onEnableOpenGLKnobValueChanged

Engine/OfxEffectInstance.cpp:2759–2771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2757}
2758
2759void
2760OfxEffectInstance::onEnableOpenGLKnobValueChanged(bool activated)
2761{
2762 const Plugin* p = getNode()->getPlugin();
2763 if (p->getPluginOpenGLRenderSupport() == ePluginOpenGLRenderSupportYes) {
2764 // The property may only change if the plug-in has the property set to yes on the descriptor
2765 if (activated) {
2766 effectInstance()->getProps().setStringProperty(kOfxImageEffectPropOpenGLRenderSupported, "true");
2767 } else {
2768 effectInstance()->getProps().setStringProperty(kOfxImageEffectPropOpenGLRenderSupported, "false");
2769 }
2770 }
2771}
2772
2773bool
2774OfxEffectInstance::supportsMultiResolution() const

Calls 3

getPluginMethod · 0.80
getNodeFunction · 0.70

Tested by

no test coverage detected