class_curvetexture.rst 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the CurveTexture.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_CurveTexture:
  6. CurveTexture
  7. ============
  8. **Inherits:** :ref:`Texture2D<class_Texture2D>` **<** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. A texture that shows a curve.
  10. Description
  11. -----------
  12. Renders a given :ref:`Curve<class_Curve>` provided to it. Simplifies the task of drawing curves and/or saving them as image files.
  13. Properties
  14. ----------
  15. +---------------------------------------------------+---------------------------------------------------------------+---------+
  16. | :ref:`Curve<class_Curve>` | :ref:`curve<class_CurveTexture_property_curve>` | |
  17. +---------------------------------------------------+---------------------------------------------------------------+---------+
  18. | :ref:`TextureMode<enum_CurveTexture_TextureMode>` | :ref:`texture_mode<class_CurveTexture_property_texture_mode>` | ``0`` |
  19. +---------------------------------------------------+---------------------------------------------------------------+---------+
  20. | :ref:`int<class_int>` | :ref:`width<class_CurveTexture_property_width>` | ``256`` |
  21. +---------------------------------------------------+---------------------------------------------------------------+---------+
  22. Enumerations
  23. ------------
  24. .. _enum_CurveTexture_TextureMode:
  25. .. _class_CurveTexture_constant_TEXTURE_MODE_RGB:
  26. .. _class_CurveTexture_constant_TEXTURE_MODE_RED:
  27. enum **TextureMode**:
  28. - **TEXTURE_MODE_RGB** = **0**
  29. - **TEXTURE_MODE_RED** = **1**
  30. Property Descriptions
  31. ---------------------
  32. .. _class_CurveTexture_property_curve:
  33. - :ref:`Curve<class_Curve>` **curve**
  34. +----------+------------------+
  35. | *Setter* | set_curve(value) |
  36. +----------+------------------+
  37. | *Getter* | get_curve() |
  38. +----------+------------------+
  39. The ``curve`` rendered onto the texture.
  40. ----
  41. .. _class_CurveTexture_property_texture_mode:
  42. - :ref:`TextureMode<enum_CurveTexture_TextureMode>` **texture_mode**
  43. +-----------+-------------------------+
  44. | *Default* | ``0`` |
  45. +-----------+-------------------------+
  46. | *Setter* | set_texture_mode(value) |
  47. +-----------+-------------------------+
  48. | *Getter* | get_texture_mode() |
  49. +-----------+-------------------------+
  50. ----
  51. .. _class_CurveTexture_property_width:
  52. - :ref:`int<class_int>` **width**
  53. +-----------+------------------+
  54. | *Default* | ``256`` |
  55. +-----------+------------------+
  56. | *Setter* | set_width(value) |
  57. +-----------+------------------+
  58. | *Getter* | get_width() |
  59. +-----------+------------------+
  60. The width of the texture.
  61. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  62. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  63. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  64. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  65. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  66. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`