class_cameratexture.rst 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the CameraTexture.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_CameraTexture:
  5. CameraTexture
  6. =============
  7. **Inherits:** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. This texture gives access to the camera texture provided by a :ref:`CameraFeed<class_CameraFeed>`.
  12. **Note:** Many cameras supply YCbCr images which need to be converted in a shader.
  13. Properties
  14. ----------
  15. +-----------------------------------------------+------------------------------------------------------------------------+
  16. | :ref:`int<class_int>` | :ref:`camera_feed_id<class_CameraTexture_property_camera_feed_id>` |
  17. +-----------------------------------------------+------------------------------------------------------------------------+
  18. | :ref:`bool<class_bool>` | :ref:`camera_is_active<class_CameraTexture_property_camera_is_active>` |
  19. +-----------------------------------------------+------------------------------------------------------------------------+
  20. | :ref:`FeedImage<enum_CameraServer_FeedImage>` | :ref:`which_feed<class_CameraTexture_property_which_feed>` |
  21. +-----------------------------------------------+------------------------------------------------------------------------+
  22. Property Descriptions
  23. ---------------------
  24. .. _class_CameraTexture_property_camera_feed_id:
  25. - :ref:`int<class_int>` **camera_feed_id**
  26. +----------+---------------------------+
  27. | *Setter* | set_camera_feed_id(value) |
  28. +----------+---------------------------+
  29. | *Getter* | get_camera_feed_id() |
  30. +----------+---------------------------+
  31. The ID of the :ref:`CameraFeed<class_CameraFeed>` for which we want to display the image.
  32. .. _class_CameraTexture_property_camera_is_active:
  33. - :ref:`bool<class_bool>` **camera_is_active**
  34. +----------+--------------------------+
  35. | *Setter* | set_camera_active(value) |
  36. +----------+--------------------------+
  37. | *Getter* | get_camera_active() |
  38. +----------+--------------------------+
  39. Convenience property that gives access to the active property of the :ref:`CameraFeed<class_CameraFeed>`.
  40. .. _class_CameraTexture_property_which_feed:
  41. - :ref:`FeedImage<enum_CameraServer_FeedImage>` **which_feed**
  42. +----------+-----------------------+
  43. | *Setter* | set_which_feed(value) |
  44. +----------+-----------------------+
  45. | *Getter* | get_which_feed() |
  46. +----------+-----------------------+
  47. 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.