Class: Clutter::OffscreenEffect
Overview
The Clutter::OffscreenEffectClass structure contains only private data
Direct Known Subclasses
BlurEffect, BrightnessContrastEffect, ColorizeEffect, DeformEffect, DesaturateEffect, ShaderEffect
Instance Method Summary collapse
-
#create_texture(width, height) ⇒ Cogl::Handle
Calls the create_texture() virtual function of the effect.
-
#get_target_rect(rect) ⇒ Boolean
Retrieves the origin and size of the offscreen buffer used by effect to paint the actor to which it has been applied.
-
#get_target_size(width, height) ⇒ Boolean
Retrieves the size of the offscreen buffer used by effect to paint the actor to which it has been applied.
-
#paint_target ⇒ nil
Calls the paint_target() virtual function of the effect.
-
#target ⇒ Cogl::Material
Retrieves the material used as a render target for the offscreen buffer created by effect.
-
#texture ⇒ Cogl::Handle
Retrieves the texture used as a render target for the offscreen buffer created by effect.
Methods inherited from Effect
Methods inherited from ActorMeta
#actor, #actor=, #enabled, #enabled=, #enabled?, #name, #name=
Instance Method Details
#create_texture(width, height) ⇒ Cogl::Handle
Calls the create_texture() virtual function of the effect
#get_target_rect(rect) ⇒ Boolean
Retrieves the origin and size of the offscreen buffer used by effect to paint the actor to which it has been applied.
This function should only be called by Clutter::OffscreenEffect implementations, from within the Clutter::OffscreenEffectClass.paint_target() virtual function.
#get_target_size(width, height) ⇒ Boolean
Retrieves the size of the offscreen buffer used by effect to paint the actor to which it has been applied.
This function should only be called by Clutter::OffscreenEffect implementations, from within the Clutter::OffscreenEffectClass.paint_target() virtual function.
#paint_target ⇒ nil
Calls the paint_target() virtual function of the effect
#target ⇒ Cogl::Material
Retrieves the material used as a render target for the offscreen buffer created by effect
You should only use the returned Cogl::Material when painting. The returned material might change between different frames.
#texture ⇒ Cogl::Handle
Retrieves the texture used as a render target for the offscreen buffer created by effect
You should only use the returned texture when painting. The texture may change after ClutterEffect::pre_paint is called so the effect implementation should update any references to the texture after chaining-up to the parent's pre_paint implementation. This can be used instead of clutter_offscreen_effect_get_target() when the effect subclass wants to paint using its own material.