123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the CanvasItemMaterial.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_CanvasItemMaterial:
- CanvasItemMaterial
- ==================
- **Inherits:** :ref:`Material<class_material>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
- **Category:** Core
- Brief Description
- -----------------
- Member Functions
- ----------------
- +------------------------+---------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_blend_mode<class_CanvasItemMaterial_get_blend_mode>` **(** **)** const |
- +------------------------+---------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_light_mode<class_CanvasItemMaterial_get_light_mode>` **(** **)** const |
- +------------------------+---------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_blend_mode<class_CanvasItemMaterial_set_blend_mode>` **(** :ref:`int<class_int>` blend_mode **)** |
- +------------------------+---------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_light_mode<class_CanvasItemMaterial_set_light_mode>` **(** :ref:`int<class_int>` light_mode **)** |
- +------------------------+---------------------------------------------------------------------------------------------------------------+
- Member Variables
- ----------------
- - :ref:`int<class_int>` **blend_mode**
- - :ref:`int<class_int>` **light_mode**
- Numeric Constants
- -----------------
- - **BLEND_MODE_MIX** = **0**
- - **BLEND_MODE_ADD** = **1**
- - **BLEND_MODE_SUB** = **2**
- - **BLEND_MODE_MUL** = **3**
- - **BLEND_MODE_PREMULT_ALPHA** = **4**
- - **LIGHT_MODE_NORMAL** = **0**
- - **LIGHT_MODE_UNSHADED** = **1**
- - **LIGHT_MODE_LIGHT_ONLY** = **2**
- Member Function Description
- ---------------------------
- .. _class_CanvasItemMaterial_get_blend_mode:
- - :ref:`int<class_int>` **get_blend_mode** **(** **)** const
- .. _class_CanvasItemMaterial_get_light_mode:
- - :ref:`int<class_int>` **get_light_mode** **(** **)** const
- .. _class_CanvasItemMaterial_set_blend_mode:
- - void **set_blend_mode** **(** :ref:`int<class_int>` blend_mode **)**
- .. _class_CanvasItemMaterial_set_light_mode:
- - void **set_light_mode** **(** :ref:`int<class_int>` light_mode **)**
|