| Top |
| void | mx_deform_texture_get_resolution () |
| void | mx_deform_texture_set_resolution () |
| void | mx_deform_texture_set_textures () |
| void | mx_deform_texture_get_textures () |
| void | mx_deform_texture_invalidate () |
GObject
╰── GInitiallyUnowned
╰── ClutterActor
╰── MxWidget
╰── MxDeformTexture
├── MxDeformBowTie
├── MxDeformPageTurn
╰── MxDeformWaves
MxDeformTexture implements ClutterContainer, ClutterScriptable, ClutterAnimatable, AtkImplementorIface and MxStylable.
An abstract widget that provides the interface for producing mesh deformation effects with a texture.
void mx_deform_texture_get_resolution (MxDeformTexture *texture,gint *tiles_x,gint *tiles_y);
Retrieve the mesh resolution of the texture.
See mx_deform_texture_set_resolution().
void mx_deform_texture_set_resolution (MxDeformTexture *texture,gint tiles_x,gint tiles_y);
Sets the amount of sub-divisions used on each axis when generating the mesh, where a value of 1 for each axis will produce a single quad.
void mx_deform_texture_set_textures (MxDeformTexture *texture,ClutterTexture *front,ClutterTexture *back);
Set textures to use as the sources of a deformation effect. Textures must not be parented.
void mx_deform_texture_get_textures (MxDeformTexture *texture,ClutterTexture **front,ClutterTexture **back);
Retrieves the textures used by texture
.
void
mx_deform_texture_invalidate (MxDeformTexture *texture);
Make texture
re-calculate its vertices and redraw itself.
struct MxDeformTexture;
The contents of this structure is private and should only be accessed using the provided API.
struct MxDeformTextureClass {
MxWidgetClass parent_class;
/* vfuncs */
void (*deform) (MxDeformTexture *texture,
CoglTextureVertex *vertex,
gfloat width,
gfloat height);
/* padding for future expansion */
void (*_padding_0) (void);
void (*_padding_1) (void);
void (*_padding_2) (void);
void (*_padding_3) (void);
void (*_padding_4) (void);
};
“back” property “back” ClutterTexture *
ClutterTexture to use for the back-face.
Flags: Read / Write
“front” property “front” ClutterTexture *
ClutterTexture to use for the front-face.
Flags: Read / Write
“tiles-x” property “tiles-x” gint
Amount of horizontal tiles to split the texture into.
Flags: Read / Write
Allowed values: >= 1
Default value: 32