class_arvrscriptinterface.rst 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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:`Vector2<class_vector2>` | :ref:`get_recommended_render_targetsize<class_ARVRScriptInterface_get_recommended_render_targetsize>` **(** **)** virtual |
  20. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :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 |
  22. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`bool<class_bool>` | :ref:`hmd_is_present<class_ARVRScriptInterface_hmd_is_present>` **(** **)** virtual |
  24. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`bool<class_bool>` | :ref:`initialize<class_ARVRScriptInterface_initialize>` **(** **)** virtual |
  26. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`bool<class_bool>` | :ref:`is_initialized<class_ARVRScriptInterface_is_initialized>` **(** **)** virtual |
  28. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`bool<class_bool>` | :ref:`is_installed<class_ARVRScriptInterface_is_installed>` **(** **)** virtual |
  30. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`bool<class_bool>` | :ref:`is_stereo<class_ARVRScriptInterface_is_stereo>` **(** **)** virtual |
  32. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`process<class_ARVRScriptInterface_process>` **(** **)** virtual |
  34. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`bool<class_bool>` | :ref:`supports_hmd<class_ARVRScriptInterface_supports_hmd>` **(** **)** virtual |
  36. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | void | :ref:`uninitialize<class_ARVRScriptInterface_uninitialize>` **(** **)** virtual |
  38. +------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. Description
  40. -----------
  41. 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.
  42. Member Function Description
  43. ---------------------------
  44. .. _class_ARVRScriptInterface__get_projection_for_eye:
  45. - void **_get_projection_for_eye** **(** **)** virtual
  46. Should return the projection 4x4 matrix for the requested eye.
  47. .. _class_ARVRScriptInterface_commit_for_eye:
  48. - void **commit_for_eye** **(** :ref:`int<class_int>` eye, :ref:`RID<class_rid>` render_target **)** virtual
  49. Outputs a finished render buffer to the AR/VR device for the given eye.
  50. .. _class_ARVRScriptInterface_get_recommended_render_targetsize:
  51. - :ref:`Vector2<class_vector2>` **get_recommended_render_targetsize** **(** **)** virtual
  52. Returns the size at which we should render our scene to get optimal quality on the output device.
  53. .. _class_ARVRScriptInterface_get_transform_for_eye:
  54. - :ref:`Transform<class_transform>` **get_transform_for_eye** **(** :ref:`int<class_int>` eye, :ref:`Transform<class_transform>` cam_transform **)** virtual
  55. Get the location and orientation transform used when rendering a specific eye.
  56. .. _class_ARVRScriptInterface_hmd_is_present:
  57. - :ref:`bool<class_bool>` **hmd_is_present** **(** **)** virtual
  58. Return true is an HMD is available.
  59. .. _class_ARVRScriptInterface_initialize:
  60. - :ref:`bool<class_bool>` **initialize** **(** **)** virtual
  61. Initialize this interface.
  62. .. _class_ARVRScriptInterface_is_initialized:
  63. - :ref:`bool<class_bool>` **is_initialized** **(** **)** virtual
  64. Returns true if this interface has been initialized and is active.
  65. .. _class_ARVRScriptInterface_is_installed:
  66. - :ref:`bool<class_bool>` **is_installed** **(** **)** virtual
  67. Returns true if the required middleware is installed.
  68. .. _class_ARVRScriptInterface_is_stereo:
  69. - :ref:`bool<class_bool>` **is_stereo** **(** **)** virtual
  70. Returns true if we require stereoscopic rendering for this interface.
  71. .. _class_ARVRScriptInterface_process:
  72. - void **process** **(** **)** virtual
  73. Gets called before rendering each frame so tracking data gets updated in time.
  74. .. _class_ARVRScriptInterface_supports_hmd:
  75. - :ref:`bool<class_bool>` **supports_hmd** **(** **)** virtual
  76. Returns true if this interface supports HMDs.
  77. .. _class_ARVRScriptInterface_uninitialize:
  78. - void **uninitialize** **(** **)** virtual
  79. Turn this interface off.