The VRDisplay interface of the WebVR API represents any VR device by this API. It includes generic information such as device IDs descriptions, as well as methods for starting to present a VR retrieving eye parameters and display capabilities, and other functionality.
The VRDisplay interface of the WebVR API represents any VR device by this API. It includes generic information such as device IDs descriptions, as well as methods for starting to present a VR retrieving eye parameters and display capabilities, and other functionality.
(cancel-animation-frame this handle)
Method.
The cancelAnimationFrame() method of the vr.VRDisplay
interface
a special implementation of web.Window.cancelAnimationFrame
unregisters callbacks registered with vr.VRDisplay.requestAnimationFrame()
.
vrDisplayInstance.cancelAnimationFrame(handle);
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/cancelAnimationFrame
Method. The cancelAnimationFrame() method of the `vr.VRDisplay` interface a special implementation of `web.Window.cancelAnimationFrame` unregisters callbacks registered with `vr.VRDisplay.requestAnimationFrame()`. `vrDisplayInstance.cancelAnimationFrame(handle);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/cancelAnimationFrame`
(capabilities this)
Property.
The capabilities read-only property of the vr.VRDisplay
interface
a vr.VRDisplayCapabilities
object that indicates the various
of the VRDisplay.
var myCapabilities = vrDisplayInstance.capabilities;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/capabilities
Property. The capabilities read-only property of the `vr.VRDisplay` interface a `vr.VRDisplayCapabilities` object that indicates the various of the VRDisplay. `var myCapabilities = vrDisplayInstance.capabilities;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/capabilities`
(depth-far this)
Property.
The depthFar property of the vr.VRDisplay
interface gets and
the z-depth defining the far plane of the eye view frustum, i.e.
furthest viewable boundary of the scene.
`var mydepthFar = vrDisplayInstance.depthFar;
vrDisplayInstance.depthFar = 7500.0;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthFar
Property. The depthFar property of the `vr.VRDisplay` interface gets and the z-depth defining the far plane of the eye view frustum, i.e. furthest viewable boundary of the scene. `var mydepthFar = vrDisplayInstance.depthFar; vrDisplayInstance.depthFar = 7500.0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthFar`
(depth-near this)
Property.
The depthNear property of the vr.VRDisplay
interface gets and
the z-depth defining the near plane of the eye view frustum,
the nearest viewable boundary of the scene.
`var mydepthNear = vrDisplayInstance.depthNear;
vrDisplayInstance.depthNear = 1.0;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthNear
Property. The depthNear property of the `vr.VRDisplay` interface gets and the z-depth defining the near plane of the eye view frustum, the nearest viewable boundary of the scene. `var mydepthNear = vrDisplayInstance.depthNear; vrDisplayInstance.depthNear = 1.0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthNear`
(display-id this)
Property.
The displayId read-only property of the vr.VRDisplay
interface
an identifier for this particular VRDisplay, which is also used
an association point in the Gamepad API (see web.Gamepad.displayId
).
var myDisplayID = vrDisplayInstance.displayId;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayId
Property. The displayId read-only property of the `vr.VRDisplay` interface an identifier for this particular VRDisplay, which is also used an association point in the Gamepad API (see `web.Gamepad.displayId`). `var myDisplayID = vrDisplayInstance.displayId;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayId`
(display-name this)
Property.
The displayName read-only property of the vr.VRDisplay
interface
a human-readable name to identify the VRDisplay.
var myDisplayName = vrDisplayInstance.displayName;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayName
Property. The displayName read-only property of the `vr.VRDisplay` interface a human-readable name to identify the VRDisplay. `var myDisplayName = vrDisplayInstance.displayName;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayName`
(exit-present this & args)
Method.
The exitPresent() method of the vr.VRDisplay
interface stops
VRDisplay presenting a scene.
vrDisplayInstance.exitPresent().then(function() { // Do something after the presentation has ended });
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/exitPresent
Method. The exitPresent() method of the `vr.VRDisplay` interface stops VRDisplay presenting a scene. `vrDisplayInstance.exitPresent().then(function() { // Do something after the presentation has ended });` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/exitPresent`
(get-eye-parameters this which-eye)
Method.
The getEyeParameters() method of the vr.VRDisplay
interface
the vr.VREyeParameters
object containing the eye parameters
the specified eye.
var myEyeParameters = vrDisplayInstance.getEyeParameters(whichEye);
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getEyeParameters
Method. The getEyeParameters() method of the `vr.VRDisplay` interface the `vr.VREyeParameters` object containing the eye parameters the specified eye. `var myEyeParameters = vrDisplayInstance.getEyeParameters(whichEye);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getEyeParameters`
(get-frame-data this frame-data)
Method.
The getFrameData() method of the vr.VRDisplay
interface accepts
vr.VRFrameData
object and populates it with the information
to render the current frame.
vrDisplayInstance.getFrameData(frameData);
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getFrameData
Method. The getFrameData() method of the `vr.VRDisplay` interface accepts `vr.VRFrameData` object and populates it with the information to render the current frame. `vrDisplayInstance.getFrameData(frameData);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getFrameData`
(get-immediate-pose this)
Method.
The getImmediatePose() method of the vr.VRDisplay
interface
a vr.VRPose
object defining the current pose of the VRDisplay,
no prediction applied.
var myImmediatePose = vrDisplayInstance.getImmediatePose();
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getImmediatePose
Method. The getImmediatePose() method of the `vr.VRDisplay` interface a `vr.VRPose` object defining the current pose of the VRDisplay, no prediction applied. `var myImmediatePose = vrDisplayInstance.getImmediatePose();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getImmediatePose`
(get-layers this)
Method.
The getLayers() method of the vr.VRDisplay
interface returns
layers currently being presented by the VRDisplay.
var myLayers = vrDisplayInstance.getLayers();
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getLayers
Method. The getLayers() method of the `vr.VRDisplay` interface returns layers currently being presented by the VRDisplay. `var myLayers = vrDisplayInstance.getLayers();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getLayers`
(get-pose this)
Method.
The getPose() method of the vr.VRDisplay
interface returns
vr.VRPose
object defining the future predicted pose of the
as it will be when the current frame is actually presented.
var myPose = vrDisplayInstance.getPose();
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getPose
Method. The getPose() method of the `vr.VRDisplay` interface returns `vr.VRPose` object defining the future predicted pose of the as it will be when the current frame is actually presented. `var myPose = vrDisplayInstance.getPose();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getPose`
(hardware-unit-id this)
Method.
The hardwareUnitId read-only property of the vr.VRDevice
interface
the distinct hardware ID for the overall hardware unit that this
is a part of. All devices that are part of the same physical
of hardware will have the same hardwareUnitId.
var hardwareID = VRDevice.hardwareUnitId;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/hardwareUnitId
Method. The hardwareUnitId read-only property of the `vr.VRDevice` interface the distinct hardware ID for the overall hardware unit that this is a part of. All devices that are part of the same physical of hardware will have the same hardwareUnitId. `var hardwareID = VRDevice.hardwareUnitId;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/hardwareUnitId`
(is-connected this)
Property.
The isConnected read-only property of the vr.VRDisplay
interface
a web.Boolean
indicating whether the VRDisplay is connected
the computer.
var isItConnected = vrDisplayInstance.isConnected;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isConnected
Property. The isConnected read-only property of the `vr.VRDisplay` interface a `web.Boolean` indicating whether the VRDisplay is connected the computer. `var isItConnected = vrDisplayInstance.isConnected;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isConnected`
(is-presenting this)
Property.
The isPresenting read-only property of the vr.VRDisplay
interface
a web.Boolean
indicating whether the VRDisplay is currently
content presented through it.
var isItPresenting = vrDisplayInstance.isPresenting;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isPresenting
Property. The isPresenting read-only property of the `vr.VRDisplay` interface a `web.Boolean` indicating whether the VRDisplay is currently content presented through it. `var isItPresenting = vrDisplayInstance.isPresenting;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isPresenting`
(request-animation-frame this callback)
Method.
The requestAnimationFrame() method of the vr.VRDisplay
interface
a special implementation of web.Window.requestAnimationFrame
a callback function that will be called every time a new frame
the VRDisplay presentation is rendered:
var handle = vrDisplayInstance.requestAnimationFrame(callback);
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/requestAnimationFrame
Method. The requestAnimationFrame() method of the `vr.VRDisplay` interface a special implementation of `web.Window.requestAnimationFrame` a callback function that will be called every time a new frame the VRDisplay presentation is rendered: `var handle = vrDisplayInstance.requestAnimationFrame(callback);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/requestAnimationFrame`
(request-present this & args)
Method.
The requestPresent() method of the vr.VRDisplay
interface starts
VRDisplay presenting a scene.
vrDisplayInstance.requestPresent(layers).then(function() { // Do something after the presentation has begun });
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/requestPresent
Method. The requestPresent() method of the `vr.VRDisplay` interface starts VRDisplay presenting a scene. `vrDisplayInstance.requestPresent(layers).then(function() { // Do something after the presentation has begun });` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/requestPresent`
(reset-pose this)
Method.
The resetPose() method of the vr.VRDisplay
interface resets
pose for the VRDisplay, treating its current vr.VRPose.position
vr.VRPose.orientation
as the "origin/zero" values.
vrDisplayInstance.resetPose();
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/resetPose
Method. The resetPose() method of the `vr.VRDisplay` interface resets pose for the VRDisplay, treating its current `vr.VRPose.position` `vr.VRPose.orientation` as the \"origin/zero\" values. `vrDisplayInstance.resetPose();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/resetPose`
(set-capabilities! this val)
Property.
The capabilities read-only property of the vr.VRDisplay
interface
a vr.VRDisplayCapabilities
object that indicates the various
of the VRDisplay.
var myCapabilities = vrDisplayInstance.capabilities;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/capabilities
Property. The capabilities read-only property of the `vr.VRDisplay` interface a `vr.VRDisplayCapabilities` object that indicates the various of the VRDisplay. `var myCapabilities = vrDisplayInstance.capabilities;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/capabilities`
(set-depth-far! this val)
Property.
The depthFar property of the vr.VRDisplay
interface gets and
the z-depth defining the far plane of the eye view frustum, i.e.
furthest viewable boundary of the scene.
`var mydepthFar = vrDisplayInstance.depthFar;
vrDisplayInstance.depthFar = 7500.0;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthFar
Property. The depthFar property of the `vr.VRDisplay` interface gets and the z-depth defining the far plane of the eye view frustum, i.e. furthest viewable boundary of the scene. `var mydepthFar = vrDisplayInstance.depthFar; vrDisplayInstance.depthFar = 7500.0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthFar`
(set-depth-near! this val)
Property.
The depthNear property of the vr.VRDisplay
interface gets and
the z-depth defining the near plane of the eye view frustum,
the nearest viewable boundary of the scene.
`var mydepthNear = vrDisplayInstance.depthNear;
vrDisplayInstance.depthNear = 1.0;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthNear
Property. The depthNear property of the `vr.VRDisplay` interface gets and the z-depth defining the near plane of the eye view frustum, the nearest viewable boundary of the scene. `var mydepthNear = vrDisplayInstance.depthNear; vrDisplayInstance.depthNear = 1.0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthNear`
(set-display-id! this val)
Property.
The displayId read-only property of the vr.VRDisplay
interface
an identifier for this particular VRDisplay, which is also used
an association point in the Gamepad API (see web.Gamepad.displayId
).
var myDisplayID = vrDisplayInstance.displayId;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayId
Property. The displayId read-only property of the `vr.VRDisplay` interface an identifier for this particular VRDisplay, which is also used an association point in the Gamepad API (see `web.Gamepad.displayId`). `var myDisplayID = vrDisplayInstance.displayId;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayId`
(set-display-name! this val)
Property.
The displayName read-only property of the vr.VRDisplay
interface
a human-readable name to identify the VRDisplay.
var myDisplayName = vrDisplayInstance.displayName;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayName
Property. The displayName read-only property of the `vr.VRDisplay` interface a human-readable name to identify the VRDisplay. `var myDisplayName = vrDisplayInstance.displayName;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayName`
(set-is-connected! this val)
Property.
The isConnected read-only property of the vr.VRDisplay
interface
a web.Boolean
indicating whether the VRDisplay is connected
the computer.
var isItConnected = vrDisplayInstance.isConnected;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isConnected
Property. The isConnected read-only property of the `vr.VRDisplay` interface a `web.Boolean` indicating whether the VRDisplay is connected the computer. `var isItConnected = vrDisplayInstance.isConnected;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isConnected`
(set-is-presenting! this val)
Property.
The isPresenting read-only property of the vr.VRDisplay
interface
a web.Boolean
indicating whether the VRDisplay is currently
content presented through it.
var isItPresenting = vrDisplayInstance.isPresenting;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isPresenting
Property. The isPresenting read-only property of the `vr.VRDisplay` interface a `web.Boolean` indicating whether the VRDisplay is currently content presented through it. `var isItPresenting = vrDisplayInstance.isPresenting;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isPresenting`
(set-stage-parameters! this val)
Property.
The stageParameters read-only property of the vr.VRDisplay
returns a vr.VRStageParameters
object containing room-scale
if the VRDisplay is capable of supporting room-scale experiences.
var myStageParameters = vrDisplayInstance.stageParameters;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/stageParameters
Property. The stageParameters read-only property of the `vr.VRDisplay` returns a `vr.VRStageParameters` object containing room-scale if the VRDisplay is capable of supporting room-scale experiences. `var myStageParameters = vrDisplayInstance.stageParameters;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/stageParameters`
(stage-parameters this)
Property.
The stageParameters read-only property of the vr.VRDisplay
returns a vr.VRStageParameters
object containing room-scale
if the VRDisplay is capable of supporting room-scale experiences.
var myStageParameters = vrDisplayInstance.stageParameters;
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/stageParameters
Property. The stageParameters read-only property of the `vr.VRDisplay` returns a `vr.VRStageParameters` object containing room-scale if the VRDisplay is capable of supporting room-scale experiences. `var myStageParameters = vrDisplayInstance.stageParameters;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/stageParameters`
(submit-frame this)
Method.
The submitFrame() method of the vr.VRDisplay
interface captures
current state of the vr.VRLayerInit
currently being presented
displays it on the VRDisplay.
vrDisplayInstance.submitFrame();
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/submitFrame
Method. The submitFrame() method of the `vr.VRDisplay` interface captures current state of the `vr.VRLayerInit` currently being presented displays it on the VRDisplay. `vrDisplayInstance.submitFrame();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/submitFrame`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close