class_arvrscriptinterface.rst 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the ARVRScriptInterface.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_ARVRScriptInterface:
  5. ARVRScriptInterface
  6. ===================
  7. **Inherits:** :ref:`ARVRInterface<class_arvrinterface>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Base class for GDNative based ARVR interfaces.
  12. Member Functions
  13. ----------------
  14. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | void | :ref:`_get_projection_for_eye<class_ARVRScriptInterface__get_projection_for_eye>` **(** **)** virtual |
  16. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`commit_for_eye<class_ARVRScriptInterface_commit_for_eye>` **(** :ref:`int<class_int>` eye, :ref:`RID<class_rid>` render_target **)** virtual |
  18. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`bool<class_bool>` | :ref:`get_anchor_detection_is_enabled<class_ARVRScriptInterface_get_anchor_detection_is_enabled>` **(** **)** virtual |
  20. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`int<class_int>` | :ref:`get_capabilities<class_ARVRScriptInterface_get_capabilities>` **(** **)** virtual |
  22. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`Vector2<class_vector2>` | :ref:`get_recommended_render_targetsize<class_ARVRScriptInterface_get_recommended_render_targetsize>` **(** **)** virtual |
  24. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`int<class_int>` | :ref:`get_tracking_status<class_ARVRScriptInterface_get_tracking_status>` **(** **)** virtual |
  26. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`Transform<class_transform>` | :ref:`get_transform_for_eye<class_ARVRScriptInterface_get_transform_for_eye>` **(** :ref:`int<class_int>` eye, :ref:`Transform<class_transform>` cam_transform **)** virtual |
  28. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`bool<class_bool>` | :ref:`initialize<class_ARVRScriptInterface_initialize>` **(** **)** virtual |
  30. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`bool<class_bool>` | :ref:`is_initialized<class_ARVRScriptInterface_is_initialized>` **(** **)** virtual |
  32. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`bool<class_bool>` | :ref:`is_stereo<class_ARVRScriptInterface_is_stereo>` **(** **)** virtual |
  34. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`process<class_ARVRScriptInterface_process>` **(** **)** virtual |
  36. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | void | :ref:`set_anchor_detection_is_enabled<class_ARVRScriptInterface_set_anchor_detection_is_enabled>` **(** :ref:`bool<class_bool>` enabled **)** virtual |
  38. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | void | :ref:`uninitialize<class_ARVRScriptInterface_uninitialize>` **(** **)** virtual |
  40. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. Description
  42. -----------
  43. This class is used as a base class/interface class for implementing GDNative based ARVR interfaces and as a result exposes more of the internals of the ARVR server.
  44. Member Function Description
  45. ---------------------------
  46. .. _class_ARVRScriptInterface__get_projection_for_eye:
  47. - void **_get_projection_for_eye** **(** **)** virtual
  48. Should return the projection 4x4 matrix for the requested eye.
  49. .. _class_ARVRScriptInterface_commit_for_eye:
  50. - void **commit_for_eye** **(** :ref:`int<class_int>` eye, :ref:`RID<class_rid>` render_target **)** virtual
  51. Outputs a finished render buffer to the AR/VR device for the given eye.
  52. .. _class_ARVRScriptInterface_get_anchor_detection_is_enabled:
  53. - :ref:`bool<class_bool>` **get_anchor_detection_is_enabled** **(** **)** virtual
  54. Returns true if achor detection is enabled (AR only).
  55. .. _class_ARVRScriptInterface_get_capabilities:
  56. - :ref:`int<class_int>` **get_capabilities** **(** **)** virtual
  57. Returns a combination of flags providing information about the capabilities of this interface.
  58. .. _class_ARVRScriptInterface_get_recommended_render_targetsize:
  59. - :ref:`Vector2<class_vector2>` **get_recommended_render_targetsize** **(** **)** virtual
  60. Returns the size at which we should render our scene to get optimal quality on the output device.
  61. .. _class_ARVRScriptInterface_get_tracking_status:
  62. - :ref:`int<class_int>` **get_tracking_status** **(** **)** virtual
  63. If supported, returns the status of our tracking. This will allow you to provide feedback to the user whether there are issues with positional tracking.
  64. .. _class_ARVRScriptInterface_get_transform_for_eye:
  65. - :ref:`Transform<class_transform>` **get_transform_for_eye** **(** :ref:`int<class_int>` eye, :ref:`Transform<class_transform>` cam_transform **)** virtual
  66. Get the location and orientation transform used when rendering a specific eye.
  67. .. _class_ARVRScriptInterface_initialize:
  68. - :ref:`bool<class_bool>` **initialize** **(** **)** virtual
  69. Initialize this interface.
  70. .. _class_ARVRScriptInterface_is_initialized:
  71. - :ref:`bool<class_bool>` **is_initialized** **(** **)** virtual
  72. Returns true if this interface has been initialized and is active.
  73. .. _class_ARVRScriptInterface_is_stereo:
  74. - :ref:`bool<class_bool>` **is_stereo** **(** **)** virtual
  75. Returns true if we require stereoscopic rendering for this interface.
  76. .. _class_ARVRScriptInterface_process:
  77. - void **process** **(** **)** virtual
  78. Gets called before rendering each frame so tracking data gets updated in time.
  79. .. _class_ARVRScriptInterface_set_anchor_detection_is_enabled:
  80. - void **set_anchor_detection_is_enabled** **(** :ref:`bool<class_bool>` enabled **)** virtual
  81. Enables anchor detection, this is used on AR interfaces and enables the extra logic that will detect planes, features, objects, etc. and adds/modifies anchor points.
  82. .. _class_ARVRScriptInterface_uninitialize:
  83. - void **uninitialize** **(** **)** virtual
  84. Turn this interface off.