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

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

💧EventEmitter's typesafe replacement
Go to Latest
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: 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