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 web.media.VRDisplay
is a special implementation of Window.cancelAnimationFrame
unregisters callbacks registered with VRDisplay.requestAnimationFrame()
.
vrDisplayInstance.cancelAnimationFrame(handle);
See also: https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/cancelAnimationFrame
Method. The cancelAnimationFrame() method of the `web.media.VRDisplay` is a special implementation of `Window.cancelAnimationFrame` unregisters callbacks registered with `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 web.media.VRDisplay
returns a web.vr.VRDisplayCapabilities
object that indicates
various capabilities 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 `web.media.VRDisplay` returns a `web.vr.VRDisplayCapabilities` object that indicates various capabilities 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 web.media.VRDisplay
interface
and sets the z-depth defining the far plane of the eye view frustum,
the 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 `web.media.VRDisplay` interface and sets the z-depth defining the far plane of the eye view frustum, the 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 web.media.VRDisplay
interface
and sets the z-depth defining the near plane of the eye view
i.e. 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 `web.media.VRDisplay` interface and sets the z-depth defining the near plane of the eye view i.e. 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 web.media.VRDisplay
returns an identifier for this particular VRDisplay, which is
used as an association point in the Gamepad API (see 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 `web.media.VRDisplay` returns an identifier for this particular VRDisplay, which is used as an association point in the Gamepad API (see `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 web.media.VRDisplay
returns 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 `web.media.VRDisplay` returns 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 web.media.VRDisplay
interface
the 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 `web.media.VRDisplay` interface the 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 web.media.VRDisplay
interface
the web.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 `web.media.VRDisplay` interface the `web.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 web.media.VRDisplay
interface
a web.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 `web.media.VRDisplay` interface a `web.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 web.media.VRDisplay
interface
a web.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 `web.media.VRDisplay` interface a `web.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 web.media.VRDisplay
interface
the 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 `web.media.VRDisplay` interface the 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 web.media.VRDisplay
interface returns
web.vr.VRPose
object defining the future predicted pose of
VRDisplay 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 `web.media.VRDisplay` interface returns `web.vr.VRPose` object defining the future predicted pose of VRDisplay 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)
Property.
The hardwareUnitId read-only property of the 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
Property. The hardwareUnitId read-only property of the `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 web.media.VRDisplay
returns a js.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 `web.media.VRDisplay` returns a `js.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 web.media.VRDisplay
returns a js.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 `web.media.VRDisplay` returns a `js.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 web.media.VRDisplay
is a special implementation of 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 `web.media.VRDisplay` is a special implementation of `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 web.media.VRDisplay
interface
the 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 `web.media.VRDisplay` interface the 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 web.media.VRDisplay
interface
the pose for the VRDisplay, treating its current VRPose.position
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 `web.media.VRDisplay` interface the pose for the VRDisplay, treating its current `VRPose.position` `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 web.media.VRDisplay
returns a web.vr.VRDisplayCapabilities
object that indicates
various capabilities 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 `web.media.VRDisplay` returns a `web.vr.VRDisplayCapabilities` object that indicates various capabilities 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 web.media.VRDisplay
interface
and sets the z-depth defining the far plane of the eye view frustum,
the 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 `web.media.VRDisplay` interface and sets the z-depth defining the far plane of the eye view frustum, the 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 web.media.VRDisplay
interface
and sets the z-depth defining the near plane of the eye view
i.e. 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 `web.media.VRDisplay` interface and sets the z-depth defining the near plane of the eye view i.e. 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 web.media.VRDisplay
returns an identifier for this particular VRDisplay, which is
used as an association point in the Gamepad API (see 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 `web.media.VRDisplay` returns an identifier for this particular VRDisplay, which is used as an association point in the Gamepad API (see `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 web.media.VRDisplay
returns 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 `web.media.VRDisplay` returns 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-hardware-unit-id! this val)
Property.
The hardwareUnitId read-only property of the 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
Property. The hardwareUnitId read-only property of the `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`
(set-is-connected! this val)
Property.
The isConnected read-only property of the web.media.VRDisplay
returns a js.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 `web.media.VRDisplay` returns a `js.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 web.media.VRDisplay
returns a js.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 `web.media.VRDisplay` returns a `js.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 web.media.VRDisplay
returns a web.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 `web.media.VRDisplay` returns a `web.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 web.media.VRDisplay
returns a web.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 `web.media.VRDisplay` returns a `web.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 web.media.VRDisplay
interface
the current state of the web.vr.VRLayerInit
currently being
and 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 `web.media.VRDisplay` interface the current state of the `web.vr.VRLayerInit` currently being and 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