瀏覽代碼

TS: Added VRButton.d.ts.

Mugen87 5 年之前
父節點
當前提交
8f6f108d54
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      examples/jsm/webxr/VRButton.d.ts

+ 11 - 0
examples/jsm/webxr/VRButton.d.ts

@@ -0,0 +1,11 @@
+import {
+	WebGLRenderer
+} from '../../../src/Three';
+
+export interface WebXROptions {
+	referenceSpaceType: string;
+}
+
+export namespace VRButton {
+	export function createButton( renderer: WebGLRenderer, options?: WebXROptions  ): HTMLElement;
+}