Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.VRDisplay

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.VRDisplay
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.16/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: VRDisplayCapabilities
depthFar: number
depthNear: number
readonly
displayId: number
readonly
displayName: string
readonly
isConnected: boolean
readonly
isPresenting: boolean
readonly
stageParameters: VRStageParameters | null

Methods

cancelAnimationFrame(handle: number): void
exitPresent(): Promise<void>
getEyeParameters(whichEye: string): VREyeParameters
getFrameData(frameData: VRFrameData): boolean
getLayers(): VRLayer[]
deprecated
getPose(): VRPose
requestAnimationFrame(callback: FrameRequestCallback): number
requestPresent(layers: VRLayer[]): Promise<void>
resetPose(): void
submitFrame(pose?: VRPose): void