<description summary="surface blending">
This protocol allows clients to have more control over alpha compositing
- of surface contents.
+ and blending of surface contents.
</description>
<interface name="wtz_blender" version="1">
<interface name="wtz_blend" version="1">
<description summary="advanced surface blending">
- A surface extension interface for setting a global alpha value applied
- to the whole surface.
+ A surface extension interface for setting a blending equation and
+ a global alpha value applied to the whole surface.
When the blend object is created its its alpha value is UINT32_MAX
(ie, opaque).
the wtz_blend object becomes inert.
</description>
+ <enum name="error">
+ <entry name="invalid_equation" value="0" summary="invalid blending equation"/>
+ </enum>
+
<request name="destroy" type="destructor">
<description summary="destroy the blend object">
Destroy the blend object.
</description>
</request>
+ <enum name="equation">
+ <description summary="blending equations">
+ Blending equations that can be used when compositing a surface.
+
+ By default, "premultiplied" is used.
+ </description>
+ <entry name="premultiplied" value="0" summary="(one, one_minus_src_alpha)"/>
+ <entry name="none" value="1" summary="(one, zero)"/>
+ </enum>
+
<request name="set_alpha">
<description summary="set the alpha value">
Set the alpha value applied to the whole surface for compositing. This
</description>
<arg name="value" type="uint" summary="alpha value"/>
</request>
+
+ <request name="set_equation">
+ <description summary="set the blending equation">
+ Set the blending equation for compositing the surface.
+
+ If the blending equation is invalid, the invalid_equation protocol
+ error is raised.
+
+ The blending equation is double-buffered state, and will be applied on
+ the next wl_surface.commit.
+ </description>
+ <arg name="equation" type="uint" enum="equation" summary="blending equation"/>
+ </request>
</interface>
</protocol>