class_canvasitemmaterial.rst 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the CanvasItemMaterial.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_CanvasItemMaterial:
  5. CanvasItemMaterial
  6. ==================
  7. **Inherits:** :ref:`Material<class_material>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Member Functions
  12. ----------------
  13. +------------------------+---------------------------------------------------------------------------------------------------------------+
  14. | :ref:`int<class_int>` | :ref:`get_blend_mode<class_CanvasItemMaterial_get_blend_mode>` **(** **)** const |
  15. +------------------------+---------------------------------------------------------------------------------------------------------------+
  16. | :ref:`int<class_int>` | :ref:`get_light_mode<class_CanvasItemMaterial_get_light_mode>` **(** **)** const |
  17. +------------------------+---------------------------------------------------------------------------------------------------------------+
  18. | void | :ref:`set_blend_mode<class_CanvasItemMaterial_set_blend_mode>` **(** :ref:`int<class_int>` blend_mode **)** |
  19. +------------------------+---------------------------------------------------------------------------------------------------------------+
  20. | void | :ref:`set_light_mode<class_CanvasItemMaterial_set_light_mode>` **(** :ref:`int<class_int>` light_mode **)** |
  21. +------------------------+---------------------------------------------------------------------------------------------------------------+
  22. Member Variables
  23. ----------------
  24. - :ref:`int<class_int>` **blend_mode**
  25. - :ref:`int<class_int>` **light_mode**
  26. Numeric Constants
  27. -----------------
  28. - **BLEND_MODE_MIX** = **0**
  29. - **BLEND_MODE_ADD** = **1**
  30. - **BLEND_MODE_SUB** = **2**
  31. - **BLEND_MODE_MUL** = **3**
  32. - **BLEND_MODE_PREMULT_ALPHA** = **4**
  33. - **LIGHT_MODE_NORMAL** = **0**
  34. - **LIGHT_MODE_UNSHADED** = **1**
  35. - **LIGHT_MODE_LIGHT_ONLY** = **2**
  36. Member Function Description
  37. ---------------------------
  38. .. _class_CanvasItemMaterial_get_blend_mode:
  39. - :ref:`int<class_int>` **get_blend_mode** **(** **)** const
  40. .. _class_CanvasItemMaterial_get_light_mode:
  41. - :ref:`int<class_int>` **get_light_mode** **(** **)** const
  42. .. _class_CanvasItemMaterial_set_blend_mode:
  43. - void **set_blend_mode** **(** :ref:`int<class_int>` blend_mode **)**
  44. .. _class_CanvasItemMaterial_set_light_mode:
  45. - void **set_light_mode** **(** :ref:`int<class_int>` light_mode **)**