mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
76 lines
2.7 KiB
ReStructuredText
76 lines
2.7 KiB
ReStructuredText
.. 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
|
|
----------------
|
|
|
|
.. _class_CanvasItemMaterial_blend_mode:
|
|
|
|
- :ref:`int<class_int>` **blend_mode**
|
|
|
|
.. _class_CanvasItemMaterial_light_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 **)**
|
|
|
|
|