interface VRDisplay
implements EventTarget
import { type VRDisplay } from "https://deno.land/x/evt@v2.5.3/lib/types/lib.dom.ts";
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