interface dom.VRDisplay
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.5.2/lib/types/index.ts";
const { VRDisplay } = dom;
This WebVR API interface represents any VR device supported by this API. It includes generic information such as device IDs and descriptions, as well as methods for starting to present a VR scene, retrieving eye parameters and display capabilities, and other important functionality.
Properties
readonly
capabilities: VRDisplayCapabilitiesreadonly
stageParameters: VRStageParameters | nullMethods
getEyeParameters(whichEye: string): VREyeParameters
getFrameData(frameData: VRFrameData): boolean
getLayers(): VRLayer[]
deprecated
getPose(): VRPoserequestAnimationFrame(callback: FrameRequestCallback): number
requestPresent(layers: VRLayer[]): Promise<void>
submitFrame(pose?: VRPose): void