The HMDVRDevice interface of the WebVR API represents a head display, providing access to information about each eye, and us to modify the current field of view.
The HMDVRDevice interface of the WebVR API represents a head display, providing access to information about each eye, and us to modify the current field of view.
(device-id this)
Property.
Returns the ID for this specific VRDevice. The ID shouldn’t change browser restarts, allowing configuration data to be saved based it.
Property. Returns the ID for this specific VRDevice. The ID shouldn’t change browser restarts, allowing configuration data to be saved based it.
(device-name this)
Property.
A human-readable name to identify the VRDevice.
Property. A human-readable name to identify the VRDevice.
(get-eye-parameters this & args)
Method.
[Experimental] [Obsolute]
The getEyeParameters() method of the web.vr.HMDVRDevice
interface
current parameters for the eye specified as its argument ("left"
"right") — stored in a web.vr.VREyeParameters
object.
var myLeftEye = HMDVRDevice.getEyeParameters('left');
See also: https://developer.mozilla.org/en-US/docs/Web/API/HMDVRDevice/getEyeParameters
Method. [Experimental] [Obsolute] The getEyeParameters() method of the `web.vr.HMDVRDevice` interface current parameters for the eye specified as its argument (\"left\" \"right\") — stored in a `web.vr.VREyeParameters` object. `var myLeftEye = HMDVRDevice.getEyeParameters('left');` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HMDVRDevice/getEyeParameters`
(hardware-unit-id this)
Property.
Returns the distinct hardware ID for the overall hardware unit this VRDevice is a part of. All devices that are part of the physical piece of hardware will have the same hardwareUnitId.
Property. Returns the distinct hardware ID for the overall hardware unit this VRDevice is a part of. All devices that are part of the physical piece of hardware will have the same hardwareUnitId.
(set-device-id! this val)
Property.
Returns the ID for this specific VRDevice. The ID shouldn’t change browser restarts, allowing configuration data to be saved based it.
Property. Returns the ID for this specific VRDevice. The ID shouldn’t change browser restarts, allowing configuration data to be saved based it.
(set-device-name! this val)
Property.
A human-readable name to identify the VRDevice.
Property. A human-readable name to identify the VRDevice.
(set-field-of-view this left-fov right-fov z-near z-far)
Method.
[Experimental] [Obsolute]
The setFieldOfView() method of the web.vr.HMDVRDevice
interface
be used to set the field of view for one eye, or both eyes simultaneously.
HMDVRDevice.setFieldOfView(leftFOV,rightFOV,zNear,zFar);
See also: https://developer.mozilla.org/en-US/docs/Web/API/HMDVRDevice/setFieldOfView
Method. [Experimental] [Obsolute] The setFieldOfView() method of the `web.vr.HMDVRDevice` interface be used to set the field of view for one eye, or both eyes simultaneously. `HMDVRDevice.setFieldOfView(leftFOV,rightFOV,zNear,zFar);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HMDVRDevice/setFieldOfView`
(set-hardware-unit-id! this val)
Property.
Returns the distinct hardware ID for the overall hardware unit this VRDevice is a part of. All devices that are part of the physical piece of hardware will have the same hardwareUnitId.
Property. Returns the distinct hardware ID for the overall hardware unit this VRDevice is a part of. All devices that are part of the physical piece of hardware will have the same hardwareUnitId.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close