Clutter.TextureNode¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Clutter.TextureNode¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.TextNode
structure is an opaque type whose members cannot be directly accessed.New in version 1.10.
- classmethod new(texture, color, min_filter, mag_filter)¶
- Parameters:
texture (
Cogl.Texture
) – aCogl.Texture
color (
Clutter.Color
orNone
) – aClutter.Color
used for blending, orNone
min_filter (
Clutter.ScalingFilter
) – the minification filter for the texturemag_filter (
Clutter.ScalingFilter
) – the magnification filter for the texture
- Returns:
the newly created
Clutter.PaintNode
. UseClutter.PaintNode.unref
() when done- Return type:
Creates a new
Clutter.PaintNode
that will paint the passed texture.This function will take a reference on texture, so it is safe to call cogl_object_unref() on texture when it returns.
The color must not be pre-multiplied with its Clutter.Color.alpha channel value; if color is
None
, a fully opaque white color will be used for blending.New in version 1.10.