kOfxImageEffectPropOpenGLEnabled
— Indicates that an image effect SHOULD use OpenGL acceleration in
#include "/ofxOpenGLRender.h" #define kOfxImageEffectPropOpenGLEnabled "OfxImageEffectPropOpenGLEnabled"
This is a property that belongs to the inArgs property set of the following actions... .
Indicates that an image effect SHOULD use OpenGL acceleration in the current action
When a plugin and host have established they can both use OpenGL renders then when this property has been set the host expects the plugin to render its result into the buffer it has setup before calling the render. The plugin can then also safely use the 'OfxImageEffectOpenGLRenderSuite'
kOfxImageEffectActionRender
kOfxImageEffectActionBeginSequenceRender
kOfxImageEffectActionEndSequenceRender
and may use the OpenGL suite functions.
\note Once this property is set, the host and plug-in have agreed to use OpenGL, so the effect SHOULD access all its images through the OpenGL suite.
v1.4: kOfxImageEffectPropOpenGLEnabled should probably be checked in Instance Changed prior to try to read image via clipLoadTexture