|
@@ -30146,7 +30146,7 @@ declare module "babylonjs/Engines/thinEngine" {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_workingContext: Nullable<CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D>;
|
|
_workingContext: Nullable<CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _bindedRenderFunction: any;
|
|
|
|
|
|
+ _boundRenderFunction: any;
|
|
private _vaoRecordInProgress;
|
|
private _vaoRecordInProgress;
|
|
private _mustWipeVertexAttributes;
|
|
private _mustWipeVertexAttributes;
|
|
private _emptyTexture;
|
|
private _emptyTexture;
|
|
@@ -32635,7 +32635,11 @@ declare module "babylonjs/Engines/engine" {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_convertRGBtoRGBATextureData(rgbData: any, width: number, height: number, textureType: number): ArrayBufferView;
|
|
_convertRGBtoRGBATextureData(rgbData: any, width: number, height: number, textureType: number): ArrayBufferView;
|
|
protected _rebuildBuffers(): void;
|
|
protected _rebuildBuffers(): void;
|
|
|
|
+ /** @hidden */
|
|
|
|
+ _renderFrame(): void;
|
|
_renderLoop(): void;
|
|
_renderLoop(): void;
|
|
|
|
+ /** @hidden */
|
|
|
|
+ _renderViews(): void;
|
|
/**
|
|
/**
|
|
* Toggle full screen mode
|
|
* Toggle full screen mode
|
|
* @param requestPointerLock defines if a pointer lock should be requested from the user
|
|
* @param requestPointerLock defines if a pointer lock should be requested from the user
|
|
@@ -46294,6 +46298,31 @@ declare module "babylonjs/Engines/Extensions/engine.multiRender" {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+declare module "babylonjs/Engines/Extensions/engine.views" {
|
|
|
|
+ import { Camera } from "babylonjs/Cameras/camera";
|
|
|
|
+ module "babylonjs/Engines/engine" {
|
|
|
|
+ interface Engine {
|
|
|
|
+ /** Gets or sets the list of views */
|
|
|
|
+ views: {
|
|
|
|
+ target: HTMLCanvasElement;
|
|
|
|
+ camera: Camera;
|
|
|
|
+ }[];
|
|
|
|
+ /**
|
|
|
|
+ * Register a new child canvas
|
|
|
|
+ * @param canvas defines the canvas to register
|
|
|
|
+ * @param camera defines the camera to use with this canvas (it will overwrite the scene.camera for this view)
|
|
|
|
+ * @returns the current engine
|
|
|
|
+ */
|
|
|
|
+ registerView(canvas: HTMLCanvasElement, camera: Camera): Engine;
|
|
|
|
+ /**
|
|
|
|
+ * Remove a registered child canvas
|
|
|
|
+ * @param canvas defines the canvas to remove
|
|
|
|
+ * @returns the current engine
|
|
|
|
+ */
|
|
|
|
+ unRegisterView(canvas: HTMLCanvasElement): Engine;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
declare module "babylonjs/Engines/Extensions/index" {
|
|
declare module "babylonjs/Engines/Extensions/index" {
|
|
export * from "babylonjs/Engines/Extensions/engine.occlusionQuery";
|
|
export * from "babylonjs/Engines/Extensions/engine.occlusionQuery";
|
|
export * from "babylonjs/Engines/Extensions/engine.transformFeedback";
|
|
export * from "babylonjs/Engines/Extensions/engine.transformFeedback";
|
|
@@ -46307,6 +46336,7 @@ declare module "babylonjs/Engines/Extensions/index" {
|
|
export * from "babylonjs/Engines/Extensions/engine.renderTargetCube";
|
|
export * from "babylonjs/Engines/Extensions/engine.renderTargetCube";
|
|
export * from "babylonjs/Engines/Extensions/engine.webVR";
|
|
export * from "babylonjs/Engines/Extensions/engine.webVR";
|
|
export * from "babylonjs/Engines/Extensions/engine.uniformBuffer";
|
|
export * from "babylonjs/Engines/Extensions/engine.uniformBuffer";
|
|
|
|
+ export * from "babylonjs/Engines/Extensions/engine.views";
|
|
}
|
|
}
|
|
declare module "babylonjs/Misc/HighDynamicRange/panoramaToCubemap" {
|
|
declare module "babylonjs/Misc/HighDynamicRange/panoramaToCubemap" {
|
|
import { Nullable } from "babylonjs/types";
|
|
import { Nullable } from "babylonjs/types";
|
|
@@ -97008,7 +97038,7 @@ declare module BABYLON {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_workingContext: Nullable<CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D>;
|
|
_workingContext: Nullable<CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _bindedRenderFunction: any;
|
|
|
|
|
|
+ _boundRenderFunction: any;
|
|
private _vaoRecordInProgress;
|
|
private _vaoRecordInProgress;
|
|
private _mustWipeVertexAttributes;
|
|
private _mustWipeVertexAttributes;
|
|
private _emptyTexture;
|
|
private _emptyTexture;
|
|
@@ -99467,7 +99497,11 @@ declare module BABYLON {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_convertRGBtoRGBATextureData(rgbData: any, width: number, height: number, textureType: number): ArrayBufferView;
|
|
_convertRGBtoRGBATextureData(rgbData: any, width: number, height: number, textureType: number): ArrayBufferView;
|
|
protected _rebuildBuffers(): void;
|
|
protected _rebuildBuffers(): void;
|
|
|
|
+ /** @hidden */
|
|
|
|
+ _renderFrame(): void;
|
|
_renderLoop(): void;
|
|
_renderLoop(): void;
|
|
|
|
+ /** @hidden */
|
|
|
|
+ _renderViews(): void;
|
|
/**
|
|
/**
|
|
* Toggle full screen mode
|
|
* Toggle full screen mode
|
|
* @param requestPointerLock defines if a pointer lock should be requested from the user
|
|
* @param requestPointerLock defines if a pointer lock should be requested from the user
|
|
@@ -112277,6 +112311,28 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ interface Engine {
|
|
|
|
+ /** Gets or sets the list of views */
|
|
|
|
+ views: {
|
|
|
|
+ target: HTMLCanvasElement;
|
|
|
|
+ camera: Camera;
|
|
|
|
+ }[];
|
|
|
|
+ /**
|
|
|
|
+ * Register a new child canvas
|
|
|
|
+ * @param canvas defines the canvas to register
|
|
|
|
+ * @param camera defines the camera to use with this canvas (it will overwrite the scene.camera for this view)
|
|
|
|
+ * @returns the current engine
|
|
|
|
+ */
|
|
|
|
+ registerView(canvas: HTMLCanvasElement, camera: Camera): Engine;
|
|
|
|
+ /**
|
|
|
|
+ * Remove a registered child canvas
|
|
|
|
+ * @param canvas defines the canvas to remove
|
|
|
|
+ * @returns the current engine
|
|
|
|
+ */
|
|
|
|
+ unRegisterView(canvas: HTMLCanvasElement): Engine;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
/**
|
|
/**
|
|
* CubeMap information grouping all the data for each faces as well as the cubemap size.
|
|
* CubeMap information grouping all the data for each faces as well as the cubemap size.
|
|
*/
|
|
*/
|