|
@@ -1,15 +1,25 @@
|
|
|
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;
|
|
|
+
|
|
|
}
|