class_cameratexture.rst 3.4 KB

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