class_spritebase3d.rst 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_SpriteBase3D:
  4. SpriteBase3D
  5. ============
  6. **Inherits:** :ref:`GeometryInstance<class_geometryinstance>` **<** :ref:`VisualInstance<class_visualinstance>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Inherited By:** :ref:`AnimatedSprite3D<class_animatedsprite3d>`, :ref:`Sprite3D<class_sprite3d>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Member Functions
  12. ----------------
  13. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`int<class_int>` | :ref:`get_alpha_cut_mode<class_SpriteBase3D_get_alpha_cut_mode>` **(** **)** const |
  15. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`int<class_int>` | :ref:`get_axis<class_SpriteBase3D_get_axis>` **(** **)** const |
  17. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`bool<class_bool>` | :ref:`get_draw_flag<class_SpriteBase3D_get_draw_flag>` **(** :ref:`int<class_int>` flag **)** const |
  19. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`Rect2<class_rect2>` | :ref:`get_item_rect<class_SpriteBase3D_get_item_rect>` **(** **)** const |
  21. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`Color<class_color>` | :ref:`get_modulate<class_SpriteBase3D_get_modulate>` **(** **)** const |
  23. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`Vector2<class_vector2>` | :ref:`get_offset<class_SpriteBase3D_get_offset>` **(** **)** const |
  25. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`float<class_float>` | :ref:`get_opacity<class_SpriteBase3D_get_opacity>` **(** **)** const |
  27. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`float<class_float>` | :ref:`get_pixel_size<class_SpriteBase3D_get_pixel_size>` **(** **)** const |
  29. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`bool<class_bool>` | :ref:`is_centered<class_SpriteBase3D_is_centered>` **(** **)** const |
  31. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`bool<class_bool>` | :ref:`is_flipped_h<class_SpriteBase3D_is_flipped_h>` **(** **)** const |
  33. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`bool<class_bool>` | :ref:`is_flipped_v<class_SpriteBase3D_is_flipped_v>` **(** **)** const |
  35. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  36. | void | :ref:`set_alpha_cut_mode<class_SpriteBase3D_set_alpha_cut_mode>` **(** :ref:`int<class_int>` mode **)** |
  37. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  38. | void | :ref:`set_axis<class_SpriteBase3D_set_axis>` **(** :ref:`int<class_int>` axis **)** |
  39. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  40. | void | :ref:`set_centered<class_SpriteBase3D_set_centered>` **(** :ref:`bool<class_bool>` centered **)** |
  41. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  42. | void | :ref:`set_draw_flag<class_SpriteBase3D_set_draw_flag>` **(** :ref:`int<class_int>` flag, :ref:`bool<class_bool>` enabled **)** |
  43. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  44. | void | :ref:`set_flip_h<class_SpriteBase3D_set_flip_h>` **(** :ref:`bool<class_bool>` flip_h **)** |
  45. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  46. | void | :ref:`set_flip_v<class_SpriteBase3D_set_flip_v>` **(** :ref:`bool<class_bool>` flip_v **)** |
  47. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  48. | void | :ref:`set_modulate<class_SpriteBase3D_set_modulate>` **(** :ref:`Color<class_color>` modulate **)** |
  49. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  50. | void | :ref:`set_offset<class_SpriteBase3D_set_offset>` **(** :ref:`Vector2<class_vector2>` offset **)** |
  51. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  52. | void | :ref:`set_opacity<class_SpriteBase3D_set_opacity>` **(** :ref:`float<class_float>` opacity **)** |
  53. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  54. | void | :ref:`set_pixel_size<class_SpriteBase3D_set_pixel_size>` **(** :ref:`float<class_float>` pixel_size **)** |
  55. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  56. Numeric Constants
  57. -----------------
  58. - **FLAG_TRANSPARENT** = **0**
  59. - **FLAG_SHADED** = **1**
  60. - **FLAG_DOUBLE_SIDED** = **2**
  61. - **FLAG_ONTOP** = **3**
  62. - **FLAG_MAX** = **4**
  63. - **ALPHA_CUT_DISABLED** = **0**
  64. - **ALPHA_CUT_DISCARD** = **1**
  65. - **ALPHA_CUT_OPAQUE_PREPASS** = **2**
  66. Member Function Description
  67. ---------------------------
  68. .. _class_SpriteBase3D_get_alpha_cut_mode:
  69. - :ref:`int<class_int>` **get_alpha_cut_mode** **(** **)** const
  70. .. _class_SpriteBase3D_get_axis:
  71. - :ref:`int<class_int>` **get_axis** **(** **)** const
  72. .. _class_SpriteBase3D_get_draw_flag:
  73. - :ref:`bool<class_bool>` **get_draw_flag** **(** :ref:`int<class_int>` flag **)** const
  74. .. _class_SpriteBase3D_get_item_rect:
  75. - :ref:`Rect2<class_rect2>` **get_item_rect** **(** **)** const
  76. .. _class_SpriteBase3D_get_modulate:
  77. - :ref:`Color<class_color>` **get_modulate** **(** **)** const
  78. .. _class_SpriteBase3D_get_offset:
  79. - :ref:`Vector2<class_vector2>` **get_offset** **(** **)** const
  80. .. _class_SpriteBase3D_get_opacity:
  81. - :ref:`float<class_float>` **get_opacity** **(** **)** const
  82. .. _class_SpriteBase3D_get_pixel_size:
  83. - :ref:`float<class_float>` **get_pixel_size** **(** **)** const
  84. .. _class_SpriteBase3D_is_centered:
  85. - :ref:`bool<class_bool>` **is_centered** **(** **)** const
  86. .. _class_SpriteBase3D_is_flipped_h:
  87. - :ref:`bool<class_bool>` **is_flipped_h** **(** **)** const
  88. .. _class_SpriteBase3D_is_flipped_v:
  89. - :ref:`bool<class_bool>` **is_flipped_v** **(** **)** const
  90. .. _class_SpriteBase3D_set_alpha_cut_mode:
  91. - void **set_alpha_cut_mode** **(** :ref:`int<class_int>` mode **)**
  92. .. _class_SpriteBase3D_set_axis:
  93. - void **set_axis** **(** :ref:`int<class_int>` axis **)**
  94. .. _class_SpriteBase3D_set_centered:
  95. - void **set_centered** **(** :ref:`bool<class_bool>` centered **)**
  96. .. _class_SpriteBase3D_set_draw_flag:
  97. - void **set_draw_flag** **(** :ref:`int<class_int>` flag, :ref:`bool<class_bool>` enabled **)**
  98. .. _class_SpriteBase3D_set_flip_h:
  99. - void **set_flip_h** **(** :ref:`bool<class_bool>` flip_h **)**
  100. .. _class_SpriteBase3D_set_flip_v:
  101. - void **set_flip_v** **(** :ref:`bool<class_bool>` flip_v **)**
  102. .. _class_SpriteBase3D_set_modulate:
  103. - void **set_modulate** **(** :ref:`Color<class_color>` modulate **)**
  104. .. _class_SpriteBase3D_set_offset:
  105. - void **set_offset** **(** :ref:`Vector2<class_vector2>` offset **)**
  106. .. _class_SpriteBase3D_set_opacity:
  107. - void **set_opacity** **(** :ref:`float<class_float>` opacity **)**
  108. .. _class_SpriteBase3D_set_pixel_size:
  109. - void **set_pixel_size** **(** :ref:`float<class_float>` pixel_size **)**