|
| optional< int > | getBlendMode () const |
| | Gets the blend mode override.
|
| |
| ColorRGBA | getColor () const |
| | Gets the outline color.
|
| |
| Vector2 | getContentGradient () const |
| | Gets the content gradient.
|
| |
| Vector4 | getContentMask () const |
| | Gets the content mask.
|
| |
| float | getContentOffset () const |
| | Gets the content offset.
|
| |
| unsigned int | getInnerWidth () const |
| | Gets the maximum thickness of the outline inside the content area.
|
| |
| bool | getInvertContentMask () const |
| | Indicates whether the content mask is inverted.
|
| |
| OutlineEffect2D::OutlineMethod | getMethod () const |
| | Gets the outline calculation method.
|
| |
| unsigned int | getOuterWidth () const |
| | Gets the maximum thickness of the outline outside the content area.
|
| |
| TextureSharedPtr | getOutlineTexture () const |
| | Gets the outline texture.
|
| |
| Vector2 | getOutlineTextureSettings () const |
| | Gets the texture settings.
|
| |
| Vector2 | getSoftness () const |
| | Gets the outline softness.
|
| |
| void | setBlendMode (optional< int > blendMode) |
| | Sets the blend mode override used for rendering the outline.
|
| |
| void | setColor (ColorRGBA color) |
| | Sets the outline color at maximum intensity.
|
| |
| void | setContentGradient (Vector2 value) |
| | Sets the content gradient.
|
| |
| void | setContentMaskParameters (Vector4 mask, float threshold) |
| | Sets the content masking parameters.
|
| |
| void | setInvertContentMask (bool invert) |
| | Sets the content mask inverting parameters.
|
| |
| void | setMethod (OutlineEffect2D::OutlineMethod method) |
| | Sets the outline calculation method.
|
| |
| void | setOutlineTexture (TextureSharedPtr texture) |
| | Sets the outline texture.
|
| |
| void | setOutlineTextureSettings (Vector2 settings) |
| | Sets the texture settings.
|
| |
| void | setSoftness (Vector2 softness) |
| | Sets the softness of the outline.
|
| |
| void | setWidths (unsigned int outerWidth, unsigned int innerWidth) |
| | Sets the maximum thickness of the outline.
|
| |
| void | applyEffect (Renderer &renderer, CompositionManager *compositionManager, const Matrix3x3 &worldTransform, const CompositionContentRequirements &requirements, TextureSharedPtr sourceContent) |
| | Applies the effect on the source content provided as texture.
|
| |
| void | beginEffect (Renderer &renderer, CompositionManager *compositionManager, const Matrix3x3 &worldTransform, const CompositionContentRequirements &requirements) |
| | Begins the effect.
|
| |
| void | blitEffect (Renderer &renderer, CompositionManager *compositionManager, const QuadDescription &effectQuad, const Matrix3x3 &transform, const Matrix4x4 *perspectiveMatrix, const Matrix4x4 *projectionMatrix, int blendMode, bool needsClear) |
| | Blits the effect to the current framebuffer.
|
| |
| void | endEffect (Renderer &renderer, CompositionManager *compositionManager) |
| | Ends the effect.
|
| |
| NodeEffect2DSharedPtr | getEffect () const |
| | Get NodeEffect2D instance where this renderer has been instantiated from.
|
| |
| size_t | getEffectPassCount () const |
| | Gets the number of effect passes.
|
| |
| bool | isLayeredOnTop () const |
| | Whether a compatible effect renders logically on top of its source content.
|
| |
| bool | isRenderEffectOnlyEnabled () const |
| | Whether the effect only mode is enabled.
|
| |
| void | restoreResources () |
| | Restores resources after the rendering context has been lost.
|
| |
| void | setRenderEffectOnly (bool renderEffectOnly) |
| | Sets the render effect only mode.
|
| |
| virtual | ~NodeEffectRenderer2D () |
| | Declare NodeEffectRenderer2D as not movable nor copyable.
|
| |
|
| void | beginEffectOverride (Renderer &renderer, CompositionManager *compositionManager, const Matrix3x3 &worldTransform, const CompositionContentRequirements &requirements) override |
| | NodeEffectRenderer2D::beginEffectOverride() implementation.
|
| |
| void | blitEffectOverride (Renderer &renderer, CompositionManager *compositionManager, const QuadDescription &effectQuad, const Matrix3x3 &transform, const Matrix4x4 *perspectiveMatrix, const Matrix4x4 *projectionMatrix, int blendMode, bool needsClear) override |
| | NodeEffectRenderer2D::blitEffectOverride() implementation.
|
| |
| void | createOutlineEffectPasses () |
| | Creates the effect passes.
|
| |
| void | endEffectOverride (Renderer &renderer, CompositionManager *compositionManager) override |
| | NodeEffectRenderer2D::endEffectOverride() implementation.
|
| |
| void | onRenderEffectOnlyChanged () override |
| | NodeEffectRenderer2D::onRenderEffectOnlyChanged() implementation.
|
| |
| | OutlineEffectRenderer2D (OutlineEffect2DSharedPtr outlineEffect) |
| | Constructor.
|
| |
| void | restoreResourcesOverride () override |
| | NodeEffectRenderer2D::restoreResourcesOverride() implementation.
|
| |
| bool | supportsBlitBlendMode (int blendMode) override |
| | NodeEffectRenderer2D::supportsBlitBlendMode() implementation.
|
| |
| void | validateContentColorScale () |
| | Validates the content color scale.
|
| |
| void | validateContentMaskParameters () |
| | Prepares the parameters for content masking.
|
| |
| void | validateEffectPasses (Vector2 nodeSize) |
| | Prepares the effect passes.
|
| |
| void | validateRenderStates () |
| | Prepares the render states.
|
| |
| EffectPass & | addEffectPass () |
| | Adds an effect pass and gets a reference to that pass.
|
| |
| void | beginInitialEffectPass (Renderer &renderer, CompositionManager *compositionManager, const CompositionContentRequirements &requirements) |
| | Begins the initial effect pass (effect pass at index 0).
|
| |
| void | blitEffectPass (int effectPassIndex, Renderer &renderer, CompositionManager *compositionManager, const QuadDescription &effectQuad, const Matrix3x3 &transform, const Matrix4x4 *perspectiveMatrix, const Matrix4x4 *projectionMatrix, int blendMode, bool needsClear) |
| | Blits the effect pass and handles the perspective transform if necessary.
|
| |
| void | blitFinalEffectPass (Renderer &renderer, CompositionManager *compositionManager, const QuadDescription &effectQuad, const Matrix3x3 &transform, const Matrix4x4 *perspectiveMatrix, const Matrix4x4 *projectionMatrix, int blendMode, bool needsClear) |
| | Blits the final effect pass, whose index is getEffectPassCount() - 1, and handles the perspective transform if necessary.
|
| |
| void | blitIntermediateEffectPass (int effectPassIndex, Renderer &renderer, CompositionManager *compositionManager) |
| | Blits the intermediate effect pass.
|
| |
| void | clearRenderTarget (Renderer &renderer, const Framebuffer &framebuffer, ColorRGBA clearColor) |
| | Clears the native framebuffer with a given color.
|
| |
| void | clearRenderTarget (Renderer &renderer, TextureSharedPtr texture, ColorRGBA clearColor) |
| | Clears the render target texture with a given color.
|
| |
| void | configureInitialEffectPass (Vector2 sourceContentSize) |
| | Configures the initial effect pass.
|
| |
| void | endInitialEffectPass (Renderer &renderer) |
| | Ends the initial effect pass, whose index is 0.
|
| |
| void | finalizeEffectPasses () |
| | Finalizes the effect passes.
|
| |
| Vector2 | getEffectInputTexelSize (int effectPassIndex, int inputIndex) |
| | Gets the texel size of the input effect pass texture in texture coordinates.
|
| |
| EffectPass & | getEffectPass (int index) |
| | Gets a reference to the effect pass at a given index.
|
| |
| int | getLastEffectPassIndex () const |
| | Gets the index of the last effect pass.
|
| |
| bool | isInitialPassRenderTargetTemporary () const |
| | Whether the initial pass render target is temporary.
|
| |
| | NodeEffectRenderer2D (NodeEffect2DSharedPtr nodeEffect) |
| | Constructor.
|
| |
| void | releaseEffectPassInputRenderTargets (EffectPass ¤tEffectPass, CompositionManager *compositionManager) |
| | Releases those temporary render targets used by input that have EffectPass::Input::releaseRenderTarget set to true.
|
| |
| void | removeAllEffectPasses () |
| | Removes all user-added effect passes, but leaves the internal initial effect pass.
|
| |
| void | setLayeredOnTop (bool layeredOnTop) |
| | Sets whether the effect is layered on top of the source content.
|
| |