Liking cljdoc? Tell your friends :D

web.vr.HMDVRDevice

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.
raw docstring

device-idcljs

(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.
sourceraw docstring

device-namecljs

(device-name this)

Property.

A human-readable name to identify the VRDevice.

Property.

A human-readable name to identify the VRDevice.
sourceraw docstring

get-eye-parameterscljs

(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`
sourceraw docstring

hardware-unit-idcljs

(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.
sourceraw docstring

set-device-id!cljs

(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.
sourceraw docstring

set-device-name!cljs

(set-device-name! this val)

Property.

A human-readable name to identify the VRDevice.

Property.

A human-readable name to identify the VRDevice.
sourceraw docstring

set-field-of-viewcljs

(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`
sourceraw docstring

set-hardware-unit-id!cljs

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close