提交 23bd63ff 编写于 作者: J Jiulong Hu

Update WebVRManager.d.ts

上级 789268fd
import { Object3D } from '../../core/Object3D';
import { Group } from '../../objects/Group';
import { PerspectiveCamera } from '../../cameras/PerspectiveCamera';
import { ArrayCamera } from '../../cameras/ArrayCamera';
import { Matrix4 } from '../../math/Matrix4';
export interface WebVRManager {
export class WebVRManager {
constructor( renderer: any );
enabled: boolean;
getController( id: number ): Group;
getDevice(): VRDisplay | null;
setDevice( device: VRDisplay | null ): void;
setFramebufferScaleFactor( value: number ): void;
setReferenceSpaceType( value: string ): void;
setPoseTarget( object: Object3D | null ): void;
getCamera( camera: PerspectiveCamera ): PerspectiveCamera | ArrayCamera;
getStandingMatrix(): Matrix4;
isPresenting: () => boolean;
setAnimationLoop( callback: Function ): void;
submitFrame(): void;
dispose(): void;
getStandingMatrix(): Matrix4;
}
......@@ -13,7 +13,7 @@ export class WebXRManager {
setSession( value: any ): void;
getCamera( camera: Camera ): Camera;
isPresenting: () => boolean;
setAnimationLoop( callback?: Function ): void;
setAnimationLoop( callback: Function ): void;
dispose(): void;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册