A base class for effects deforming the geometry of an actor
<clutter-deform-effect>
is an abstract class providing all the
plumbing for creating effects that result in the deformation of an
actor's geometry.
<clutter-deform-effect>
uses offscreen buffers to render the
contents of a <clutter-actor>
and then the Cogl vertex buffers
API to submit the geometry to the GPU.
Sub-classes of <clutter-deform-effect>
should override the
deform-vertex
virtual function; this function is called on
every vertex that needs to be deformed by the effect. Each passed vertex
is an in-out parameter that initially contains the position of the
vertex and should be modified according to a specific deformation
algorithm.
<clutter-deform-effect>
is available since Clutter 1.4
<clutter-deform-effect>
) (x_tiles unsigned-int
) (y_tiles unsigned-int
)Sets the number of horizontal and vertical tiles to be used when applying the effect
More tiles allow a finer grained deformation at the expenses of computation
- effect
- a
<clutter-deform-effect>
- x-tiles
- number of horizontal tiles
- y-tiles
- number of vertical tiles
Since 1.4
<clutter-deform-effect>
) ⇒ (x_tiles unsigned-int
) (y_tiles unsigned-int
)Retrieves the number of horizontal and vertical tiles used to sub-divide the actor's geometry during the effect
- effect
- a
<clutter-deform-effect>
- x-tiles
- return location for the number of horizontal tiles, or ‘
#f
’.- y-tiles
- return location for the number of vertical tiles, or ‘
#f
’.Since 1.4