[ CCode ( has_construct_function = false , type = "ClutterPaintNode*" ) ]
public TextureNode (Texture texture, Color? color, ScalingFilter min_filter, ScalingFilter mag_filter)
Creates a new 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 alpha channel value; if
color
is null
, a fully opaque white color will be used for blending.
texture |
a |
color |
a Color used for blending, or |
min_filter |
the minification filter for the texture |
mag_filter |
the magnification filter for the texture |