class_cameratexture.rst 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This texture gives access to the camera texture provided by a :ref:`CameraFeed<class_CameraFeed>`.
  15. \ **Note:** Many cameras supply YCbCr images which need to be converted in a shader.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +-----------------------------------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
  22. | :ref:`int<class_int>` | :ref:`camera_feed_id<class_CameraTexture_property_camera_feed_id>` | ``0`` |
  23. +-----------------------------------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
  24. | :ref:`bool<class_bool>` | :ref:`camera_is_active<class_CameraTexture_property_camera_is_active>` | ``false`` |
  25. +-----------------------------------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
  26. | :ref:`bool<class_bool>` | resource_local_to_scene | ``false`` (overrides :ref:`Resource<class_Resource_property_resource_local_to_scene>`) |
  27. +-----------------------------------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
  28. | :ref:`FeedImage<enum_CameraServer_FeedImage>` | :ref:`which_feed<class_CameraTexture_property_which_feed>` | ``0`` |
  29. +-----------------------------------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
  30. .. rst-class:: classref-section-separator
  31. ----
  32. .. rst-class:: classref-descriptions-group
  33. Property Descriptions
  34. ---------------------
  35. .. _class_CameraTexture_property_camera_feed_id:
  36. .. rst-class:: classref-property
  37. :ref:`int<class_int>` **camera_feed_id** = ``0`` :ref:`🔗<class_CameraTexture_property_camera_feed_id>`
  38. .. rst-class:: classref-property-setget
  39. - |void| **set_camera_feed_id**\ (\ value\: :ref:`int<class_int>`\ )
  40. - :ref:`int<class_int>` **get_camera_feed_id**\ (\ )
  41. The ID of the :ref:`CameraFeed<class_CameraFeed>` for which we want to display the image.
  42. .. rst-class:: classref-item-separator
  43. ----
  44. .. _class_CameraTexture_property_camera_is_active:
  45. .. rst-class:: classref-property
  46. :ref:`bool<class_bool>` **camera_is_active** = ``false`` :ref:`🔗<class_CameraTexture_property_camera_is_active>`
  47. .. rst-class:: classref-property-setget
  48. - |void| **set_camera_active**\ (\ value\: :ref:`bool<class_bool>`\ )
  49. - :ref:`bool<class_bool>` **get_camera_active**\ (\ )
  50. Convenience property that gives access to the active property of the :ref:`CameraFeed<class_CameraFeed>`.
  51. .. rst-class:: classref-item-separator
  52. ----
  53. .. _class_CameraTexture_property_which_feed:
  54. .. rst-class:: classref-property
  55. :ref:`FeedImage<enum_CameraServer_FeedImage>` **which_feed** = ``0`` :ref:`🔗<class_CameraTexture_property_which_feed>`
  56. .. rst-class:: classref-property-setget
  57. - |void| **set_which_feed**\ (\ value\: :ref:`FeedImage<enum_CameraServer_FeedImage>`\ )
  58. - :ref:`FeedImage<enum_CameraServer_FeedImage>` **get_which_feed**\ (\ )
  59. 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.
  60. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  61. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  62. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  63. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  64. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  65. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  66. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  67. .. |void| replace:: :abbr:`void (No return value.)`