Skip to content
0.2.0-dev Download ZIP
36 lines ·1.5 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="BlitMaterial" inherits="Material" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A material that processes blit calls to a DrawableTexture.
5 </brief_description>
6 <description>
7 A material resource that can be used by DrawableTextures when processing blit calls to draw.
8 </description>
9 <tutorials>
10 </tutorials>
11 <members>
12 <member name="blend_mode" type="int" setter="set_blend_mode" getter="get_blend_mode" enum="BlitMaterial.BlendMode" default="0">
13 The manner in which the newly blitted texture is blended with the original DrawableTexture.
14 </member>
15 </members>
16 <constants>
17 <constant name="BLEND_MODE_MIX" value="0" enum="BlendMode">
18 Mix blending mode. Colors are assumed to be independent of the alpha (opacity) value.
19 </constant>
20 <constant name="BLEND_MODE_ADD" value="1" enum="BlendMode">
21 Additive blending mode.
22 </constant>
23 <constant name="BLEND_MODE_SUB" value="2" enum="BlendMode">
24 Subtractive blending mode.
25 </constant>
26 <constant name="BLEND_MODE_MUL" value="3" enum="BlendMode">
27 Multiplicative blending mode.
28 </constant>
29 <constant name="BLEND_MODE_DISABLED" value="4" enum="BlendMode">
30 No blending mode, direct color copy.
31 </constant>
32 <constant name="BLEND_MODE_PREMULTIPLIED_ALPHA" value="5" enum="BlendMode">
33 Mix blending mode. Colors are assumed to be premultiplied by the alpha (opacity) value.
34 </constant>
35 </constants>
36</class>