Files
godot-docs/classes/class_arvrscriptinterface.rst
T

129 lines
8.2 KiB
ReStructuredText

.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the ARVRScriptInterface.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
.. _class_ARVRScriptInterface:
ARVRScriptInterface
===================
**Inherits:** :ref:`ARVRInterface<class_arvrinterface>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
**Category:** Core
Brief Description
-----------------
Base class for GDNative based ARVR interfaces.
Member Functions
----------------
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`_get_projection_for_eye<class_ARVRScriptInterface__get_projection_for_eye>` **(** **)** virtual |
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`commit_for_eye<class_ARVRScriptInterface_commit_for_eye>` **(** :ref:`int<class_int>` eye, :ref:`RID<class_rid>` render_target **)** virtual |
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Vector2<class_vector2>` | :ref:`get_recommended_render_targetsize<class_ARVRScriptInterface_get_recommended_render_targetsize>` **(** **)** virtual |
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :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 |
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`hmd_is_present<class_ARVRScriptInterface_hmd_is_present>` **(** **)** virtual |
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`initialize<class_ARVRScriptInterface_initialize>` **(** **)** virtual |
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_initialized<class_ARVRScriptInterface_is_initialized>` **(** **)** virtual |
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_installed<class_ARVRScriptInterface_is_installed>` **(** **)** virtual |
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_stereo<class_ARVRScriptInterface_is_stereo>` **(** **)** virtual |
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`process<class_ARVRScriptInterface_process>` **(** **)** virtual |
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`supports_hmd<class_ARVRScriptInterface_supports_hmd>` **(** **)** virtual |
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`uninitialize<class_ARVRScriptInterface_uninitialize>` **(** **)** virtual |
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Description
-----------
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.
Member Function Description
---------------------------
.. _class_ARVRScriptInterface__get_projection_for_eye:
- void **_get_projection_for_eye** **(** **)** virtual
Should return the projection 4x4 matrix for the requested eye.
.. _class_ARVRScriptInterface_commit_for_eye:
- void **commit_for_eye** **(** :ref:`int<class_int>` eye, :ref:`RID<class_rid>` render_target **)** virtual
Outputs a finished render buffer to the AR/VR device for the given eye.
.. _class_ARVRScriptInterface_get_recommended_render_targetsize:
- :ref:`Vector2<class_vector2>` **get_recommended_render_targetsize** **(** **)** virtual
Returns the size at which we should render our scene to get optimal quality on the output device.
.. _class_ARVRScriptInterface_get_transform_for_eye:
- :ref:`Transform<class_transform>` **get_transform_for_eye** **(** :ref:`int<class_int>` eye, :ref:`Transform<class_transform>` cam_transform **)** virtual
Get the location and orientation transform used when rendering a specific eye.
.. _class_ARVRScriptInterface_hmd_is_present:
- :ref:`bool<class_bool>` **hmd_is_present** **(** **)** virtual
Return true is an HMD is available.
.. _class_ARVRScriptInterface_initialize:
- :ref:`bool<class_bool>` **initialize** **(** **)** virtual
Initialize this interface.
.. _class_ARVRScriptInterface_is_initialized:
- :ref:`bool<class_bool>` **is_initialized** **(** **)** virtual
Returns true if this interface has been initialized and is active.
.. _class_ARVRScriptInterface_is_installed:
- :ref:`bool<class_bool>` **is_installed** **(** **)** virtual
Returns true if the required middleware is installed.
.. _class_ARVRScriptInterface_is_stereo:
- :ref:`bool<class_bool>` **is_stereo** **(** **)** virtual
Returns true if we require stereoscopic rendering for this interface.
.. _class_ARVRScriptInterface_process:
- void **process** **(** **)** virtual
Gets called before rendering each frame so tracking data gets updated in time.
.. _class_ARVRScriptInterface_supports_hmd:
- :ref:`bool<class_bool>` **supports_hmd** **(** **)** virtual
Returns true if this interface supports HMDs.
.. _class_ARVRScriptInterface_uninitialize:
- void **uninitialize** **(** **)** virtual
Turn this interface off.