ARVRScriptInterface.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ARVRScriptInterface" inherits="ARVRInterface" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. Base class for GDNative based ARVR interfaces.
  5. </brief_description>
  6. <description>
  7. 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.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="_get_projection_for_eye" qualifiers="virtual">
  15. <return type="void">
  16. </return>
  17. <description>
  18. Should return the projection 4x4 matrix for the requested eye.
  19. </description>
  20. </method>
  21. <method name="commit_for_eye" qualifiers="virtual">
  22. <return type="void">
  23. </return>
  24. <argument index="0" name="eye" type="int">
  25. </argument>
  26. <argument index="1" name="render_target" type="RID">
  27. </argument>
  28. <description>
  29. Outputs a finished render buffer to the AR/VR device for the given eye.
  30. </description>
  31. </method>
  32. <method name="get_recommended_render_targetsize" qualifiers="virtual">
  33. <return type="Vector2">
  34. </return>
  35. <description>
  36. Returns the size at which we should render our scene to get optimal quality on the output device.
  37. </description>
  38. </method>
  39. <method name="get_transform_for_eye" qualifiers="virtual">
  40. <return type="Transform">
  41. </return>
  42. <argument index="0" name="eye" type="int">
  43. </argument>
  44. <argument index="1" name="cam_transform" type="Transform">
  45. </argument>
  46. <description>
  47. Get the location and orientation transform used when rendering a specific eye.
  48. </description>
  49. </method>
  50. <method name="hmd_is_present" qualifiers="virtual">
  51. <return type="bool">
  52. </return>
  53. <description>
  54. Return true is an HMD is available.
  55. </description>
  56. </method>
  57. <method name="initialize" qualifiers="virtual">
  58. <return type="bool">
  59. </return>
  60. <description>
  61. Initialize this interface.
  62. </description>
  63. </method>
  64. <method name="is_initialized" qualifiers="virtual">
  65. <return type="bool">
  66. </return>
  67. <description>
  68. Returns true if this interface has been initialized and is active.
  69. </description>
  70. </method>
  71. <method name="is_installed" qualifiers="virtual">
  72. <return type="bool">
  73. </return>
  74. <description>
  75. Returns true if the required middleware is installed.
  76. </description>
  77. </method>
  78. <method name="is_stereo" qualifiers="virtual">
  79. <return type="bool">
  80. </return>
  81. <description>
  82. Returns true if we require stereoscopic rendering for this interface.
  83. </description>
  84. </method>
  85. <method name="process" qualifiers="virtual">
  86. <return type="void">
  87. </return>
  88. <description>
  89. Gets called before rendering each frame so tracking data gets updated in time.
  90. </description>
  91. </method>
  92. <method name="supports_hmd" qualifiers="virtual">
  93. <return type="bool">
  94. </return>
  95. <description>
  96. Returns true if this interface supports HMDs.
  97. </description>
  98. </method>
  99. <method name="uninitialize" qualifiers="virtual">
  100. <return type="void">
  101. </return>
  102. <description>
  103. Turn this interface off.
  104. </description>
  105. </method>
  106. </methods>
  107. <constants>
  108. </constants>
  109. </class>