class_cameratexture.rst 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/CameraTexture.xml.
  6. .. _class_CameraTexture:
  7. CameraTexture
  8. =============
  9. **Inherits:** :ref:`Texture2D<class_Texture2D>` **<** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Texture provided by a :ref:`CameraFeed<class_CameraFeed>`.
  11. Description
  12. -----------
  13. This texture gives access to the camera texture provided by a :ref:`CameraFeed<class_CameraFeed>`.
  14. \ **Note:** Many cameras supply YCbCr images which need to be converted in a shader.
  15. Properties
  16. ----------
  17. +-----------------------------------------------+------------------------------------------------------------------------+-----------+
  18. | :ref:`int<class_int>` | :ref:`camera_feed_id<class_CameraTexture_property_camera_feed_id>` | ``0`` |
  19. +-----------------------------------------------+------------------------------------------------------------------------+-----------+
  20. | :ref:`bool<class_bool>` | :ref:`camera_is_active<class_CameraTexture_property_camera_is_active>` | ``false`` |
  21. +-----------------------------------------------+------------------------------------------------------------------------+-----------+
  22. | :ref:`FeedImage<enum_CameraServer_FeedImage>` | :ref:`which_feed<class_CameraTexture_property_which_feed>` | ``0`` |
  23. +-----------------------------------------------+------------------------------------------------------------------------+-----------+
  24. Property Descriptions
  25. ---------------------
  26. .. _class_CameraTexture_property_camera_feed_id:
  27. - :ref:`int<class_int>` **camera_feed_id**
  28. +-----------+---------------------------+
  29. | *Default* | ``0`` |
  30. +-----------+---------------------------+
  31. | *Setter* | set_camera_feed_id(value) |
  32. +-----------+---------------------------+
  33. | *Getter* | get_camera_feed_id() |
  34. +-----------+---------------------------+
  35. The ID of the :ref:`CameraFeed<class_CameraFeed>` for which we want to display the image.
  36. ----
  37. .. _class_CameraTexture_property_camera_is_active:
  38. - :ref:`bool<class_bool>` **camera_is_active**
  39. +-----------+--------------------------+
  40. | *Default* | ``false`` |
  41. +-----------+--------------------------+
  42. | *Setter* | set_camera_active(value) |
  43. +-----------+--------------------------+
  44. | *Getter* | get_camera_active() |
  45. +-----------+--------------------------+
  46. Convenience property that gives access to the active property of the :ref:`CameraFeed<class_CameraFeed>`.
  47. ----
  48. .. _class_CameraTexture_property_which_feed:
  49. - :ref:`FeedImage<enum_CameraServer_FeedImage>` **which_feed**
  50. +-----------+-----------------------+
  51. | *Default* | ``0`` |
  52. +-----------+-----------------------+
  53. | *Setter* | set_which_feed(value) |
  54. +-----------+-----------------------+
  55. | *Getter* | get_which_feed() |
  56. +-----------+-----------------------+
  57. Which image within the :ref:`CameraFeed<class_CameraFeed>` we want access to, important if the camera image is split in a Y and CbCr component.
  58. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  59. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  60. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  61. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  62. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  63. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`