*
* /* the cogl_texture variable is set elsewhere */
* node = clutter_texture_node_new (cogl_texture, CLUTTER_COLOR_White,
- * CLUTTER_SCALING_FILTER_BILINEAR,
+ * CLUTTER_SCALING_FILTER_TRILINEAR,
* CLUTTER_SCALING_FILTER_LINEAR);
*
* /* paint the content of the node using the allocation */
* ClutterScalingFilter:
* @CLUTTER_SCALING_FILTER_LINEAR: Linear interpolation filter
* @CLUTTER_SCALING_FILTER_NEAREST: Nearest neighbor interpolation filter
- * @CLUTTER_SCALING_FILTER_BILINEAR: Bilinear minification filter; this
- * filter enables mipmap generation.
+ * @CLUTTER_SCALING_FILTER_TRILINEAR: Trilinear minification filter, with
+ * mipmap generation; this filter linearly interpolates on every axis,
+ * as well as between mipmap levels.
*
* The scaling filters to be used with the #ClutterActor:minification-filter
* and #ClutterActor:magnification-filter properties.
typedef enum {
CLUTTER_SCALING_FILTER_LINEAR,
CLUTTER_SCALING_FILTER_NEAREST,
- CLUTTER_SCALING_FILTER_BILINEAR
+ CLUTTER_SCALING_FILTER_TRILINEAR
} ClutterScalingFilter;
G_END_DECLS
case CLUTTER_SCALING_FILTER_LINEAR:
return COGL_PIPELINE_FILTER_LINEAR;
- case CLUTTER_SCALING_FILTER_BILINEAR:
+ case CLUTTER_SCALING_FILTER_TRILINEAR:
return COGL_PIPELINE_FILTER_LINEAR_MIPMAP_LINEAR;
}
actor = clutter_actor_new ();
clutter_actor_set_content (actor, canvas);
clutter_actor_set_content_scaling_filters (actor,
- CLUTTER_SCALING_FILTER_BILINEAR,
+ CLUTTER_SCALING_FILTER_TRILINEAR,
CLUTTER_SCALING_FILTER_LINEAR);
clutter_actor_add_child (stage, actor);
g_object_unref (pixbuf);
clutter_actor_set_content_scaling_filters (box,
- CLUTTER_SCALING_FILTER_BILINEAR,
+ CLUTTER_SCALING_FILTER_TRILINEAR,
CLUTTER_SCALING_FILTER_LINEAR);
clutter_actor_set_content_gravity (box, gravities[n_gravities - 1].gravity);
clutter_actor_set_content (box, image);