Class XR_HTC_eye_tracker
Inherited Members
Namespace: VIVE.OpenXR
Assembly: VIVE.OpenXR.dll
Syntax
public class XR_HTC_eye_tracker
Properties
Interop
Declaration
public static XR_HTC_eye_tracker_defs Interop { get; }
Property Value
Type | Description |
---|---|
XR_HTC_eye_tracker_defs |
Methods
xrCreateEyeTrackerHTC(XrEyeTrackerCreateInfoHTC, out XrEyeTrackerHTC)
An application can create an XrEyeTrackerHTC handle using CreateEyeTracker.
Declaration
public static XrResult xrCreateEyeTrackerHTC(XrEyeTrackerCreateInfoHTC createInfo, out XrEyeTrackerHTC eyeTracker)
Parameters
Type | Name | Description |
---|---|---|
XrEyeTrackerCreateInfoHTC | createInfo | The XrEyeTrackerCreateInfoHTC used to specify the eye tracker. |
XrEyeTrackerHTC | eyeTracker | The returned XrEyeTrackerHTC handle. |
Returns
Type | Description |
---|---|
XrResult | XR_SUCCESS for success. |
xrDestroyEyeTrackerHTC(XrEyeTrackerHTC)
Releases the eye tracker and the underlying resources when the eye tracking experience is over.
Declaration
public static XrResult xrDestroyEyeTrackerHTC(XrEyeTrackerHTC eyeTracker)
Parameters
Type | Name | Description |
---|---|---|
XrEyeTrackerHTC | eyeTracker | An XrEyeTrackerHTC previously created by xrCreateEyeTrackerHTC. |
Returns
Type | Description |
---|---|
XrResult | XR_SUCCESS for success. |
xrGetEyeGazeDataHTC(XrEyeTrackerHTC, XrEyeGazeDataInfoHTC, out XrEyeGazeDataHTC)
Retrieves the XrEyeGazeDataHTC data of a XrEyeTrackerHTC.
Declaration
public static XrResult xrGetEyeGazeDataHTC(XrEyeTrackerHTC eyeTracker, XrEyeGazeDataInfoHTC gazeInfo, out XrEyeGazeDataHTC eyeGazes)
Parameters
Type | Name | Description |
---|---|---|
XrEyeTrackerHTC | eyeTracker | An XrEyeTrackerHTC previously created by xrCreateEyeTrackerHTC. |
XrEyeGazeDataInfoHTC | gazeInfo | The information to get eye gaze. |
XrEyeGazeDataHTC | eyeGazes | Output parameter to retrieve a pointer to XrEyeGazeDataHTC receiving the returned eye poses. |
Returns
Type | Description |
---|---|
XrResult | XR_SUCCESS for success. |
xrGetEyeGeometricDataHTC(XrEyeTrackerHTC, XrEyeGeometricDataInfoHTC, out XrEyeGeometricDataHTC)
Declaration
public static XrResult xrGetEyeGeometricDataHTC(XrEyeTrackerHTC eyeTracker, XrEyeGeometricDataInfoHTC info, out XrEyeGeometricDataHTC eyeGeometricData)
Parameters
Type | Name | Description |
---|---|---|
XrEyeTrackerHTC | eyeTracker | An XrEyeTrackerHTC previously created by xrCreateEyeTrackerHTC. |
XrEyeGeometricDataInfoHTC | info | A pointer to XrEyeGeometricDataInfoHTC structure. |
XrEyeGeometricDataHTC | eyeGeometricData | A pointer to XrEyeGeometricDataHTC returned by the runtime. |
Returns
Type | Description |
---|---|
XrResult | XR_SUCCESS for success. |
xrGetEyePupilDataHTC(XrEyeTrackerHTC, XrEyePupilDataInfoHTC, out XrEyePupilDataHTC)
Retrieves the XrEyePupilDataHTC data of a XrEyeTrackerHTC.
Declaration
public static XrResult xrGetEyePupilDataHTC(XrEyeTrackerHTC eyeTracker, XrEyePupilDataInfoHTC pupilDataInfo, out XrEyePupilDataHTC pupilData)
Parameters
Type | Name | Description |
---|---|---|
XrEyeTrackerHTC | eyeTracker | An XrEyeTrackerHTC previously created by xrCreateEyeTrackerHTC. |
XrEyePupilDataInfoHTC | pupilDataInfo | The information to get pupil data. |
XrEyePupilDataHTC | pupilData | A pointer to XrEyePupilDataHTC returned by the runtime. |
Returns
Type | Description |
---|---|
XrResult | XR_SUCCESS for success. |