Browse Source

Export IScreenshotSize. Use IScreenshotSize for normal CreateScreenshot command as well.

Devin Wright 6 years ago
parent
commit
6cd68d0bef

+ 1 - 1
inspector/src/components/actionTabs/tabs/toolsTabComponent.tsx

@@ -50,7 +50,7 @@ export class ToolsTabComponent extends PaneComponent {
     captureScreenshot() {
         const scene = this.props.scene;
         if (scene.activeCamera) {
-            Tools.CreateScreenshot(scene.getEngine(), scene.activeCamera, { precision: 1.0 });
+            Tools.CreateScreenshot(scene.getEngine(), scene.activeCamera, this._screenShotSize);
         }
     }
 

+ 1 - 0
src/Misc/index.ts

@@ -40,3 +40,4 @@ export * from "./fileRequest";
 export * from "./customAnimationFrameRequester";
 export * from "./retryStrategy";
 export * from "./loadFileError";
+export * from "./interfaces/screenshotSize";