|
@@ -4290,69 +4290,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class KeyboardEventTypes {
|
|
|
- static _KEYDOWN: number;
|
|
|
- static _KEYUP: number;
|
|
|
- static readonly KEYDOWN: number;
|
|
|
- static readonly KEYUP: number;
|
|
|
- }
|
|
|
- class KeyboardInfo {
|
|
|
- type: number;
|
|
|
- event: KeyboardEvent;
|
|
|
- constructor(type: number, event: KeyboardEvent);
|
|
|
- }
|
|
|
- /**
|
|
|
- * This class is used to store keyboard related info for the onPreKeyboardObservable event.
|
|
|
- * Set the skipOnKeyboardObservable property to true if you want the engine to stop any process after this event is triggered, even not calling onKeyboardObservable
|
|
|
- */
|
|
|
- class KeyboardInfoPre extends KeyboardInfo {
|
|
|
- constructor(type: number, event: KeyboardEvent);
|
|
|
- skipOnPointerObservable: boolean;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class PointerEventTypes {
|
|
|
- static _POINTERDOWN: number;
|
|
|
- static _POINTERUP: number;
|
|
|
- static _POINTERMOVE: number;
|
|
|
- static _POINTERWHEEL: number;
|
|
|
- static _POINTERPICK: number;
|
|
|
- static _POINTERTAP: number;
|
|
|
- static _POINTERDOUBLETAP: number;
|
|
|
- static readonly POINTERDOWN: number;
|
|
|
- static readonly POINTERUP: number;
|
|
|
- static readonly POINTERMOVE: number;
|
|
|
- static readonly POINTERWHEEL: number;
|
|
|
- static readonly POINTERPICK: number;
|
|
|
- static readonly POINTERTAP: number;
|
|
|
- static readonly POINTERDOUBLETAP: number;
|
|
|
- }
|
|
|
- class PointerInfoBase {
|
|
|
- type: number;
|
|
|
- event: PointerEvent | MouseWheelEvent;
|
|
|
- constructor(type: number, event: PointerEvent | MouseWheelEvent);
|
|
|
- }
|
|
|
- /**
|
|
|
- * This class is used to store pointer related info for the onPrePointerObservable event.
|
|
|
- * Set the skipOnPointerObservable property to true if you want the engine to stop any process after this event is triggered, even not calling onPointerObservable
|
|
|
- */
|
|
|
- class PointerInfoPre extends PointerInfoBase {
|
|
|
- constructor(type: number, event: PointerEvent | MouseWheelEvent, localX: number, localY: number);
|
|
|
- localPosition: Vector2;
|
|
|
- skipOnPointerObservable: boolean;
|
|
|
- }
|
|
|
- /**
|
|
|
- * This type contains all the data related to a pointer event in Babylon.js.
|
|
|
- * The event member is an instance of PointerEvent for all types except PointerWheel and is of type MouseWheelEvent when type equals PointerWheel. The different event types can be found in the PointerEventTypes class.
|
|
|
- */
|
|
|
- class PointerInfo extends PointerInfoBase {
|
|
|
- pickInfo: Nullable<PickingInfo>;
|
|
|
- constructor(type: number, event: PointerEvent | MouseWheelEvent, pickInfo: Nullable<PickingInfo>);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class BoundingBox implements ICullable {
|
|
|
minimum: Vector3;
|
|
|
maximum: Vector3;
|
|
@@ -5505,6 +5442,69 @@ declare var WebGLVertexArrayObject: {
|
|
|
};
|
|
|
|
|
|
declare module BABYLON {
|
|
|
+ class KeyboardEventTypes {
|
|
|
+ static _KEYDOWN: number;
|
|
|
+ static _KEYUP: number;
|
|
|
+ static readonly KEYDOWN: number;
|
|
|
+ static readonly KEYUP: number;
|
|
|
+ }
|
|
|
+ class KeyboardInfo {
|
|
|
+ type: number;
|
|
|
+ event: KeyboardEvent;
|
|
|
+ constructor(type: number, event: KeyboardEvent);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * This class is used to store keyboard related info for the onPreKeyboardObservable event.
|
|
|
+ * Set the skipOnKeyboardObservable property to true if you want the engine to stop any process after this event is triggered, even not calling onKeyboardObservable
|
|
|
+ */
|
|
|
+ class KeyboardInfoPre extends KeyboardInfo {
|
|
|
+ constructor(type: number, event: KeyboardEvent);
|
|
|
+ skipOnPointerObservable: boolean;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class PointerEventTypes {
|
|
|
+ static _POINTERDOWN: number;
|
|
|
+ static _POINTERUP: number;
|
|
|
+ static _POINTERMOVE: number;
|
|
|
+ static _POINTERWHEEL: number;
|
|
|
+ static _POINTERPICK: number;
|
|
|
+ static _POINTERTAP: number;
|
|
|
+ static _POINTERDOUBLETAP: number;
|
|
|
+ static readonly POINTERDOWN: number;
|
|
|
+ static readonly POINTERUP: number;
|
|
|
+ static readonly POINTERMOVE: number;
|
|
|
+ static readonly POINTERWHEEL: number;
|
|
|
+ static readonly POINTERPICK: number;
|
|
|
+ static readonly POINTERTAP: number;
|
|
|
+ static readonly POINTERDOUBLETAP: number;
|
|
|
+ }
|
|
|
+ class PointerInfoBase {
|
|
|
+ type: number;
|
|
|
+ event: PointerEvent | MouseWheelEvent;
|
|
|
+ constructor(type: number, event: PointerEvent | MouseWheelEvent);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * This class is used to store pointer related info for the onPrePointerObservable event.
|
|
|
+ * Set the skipOnPointerObservable property to true if you want the engine to stop any process after this event is triggered, even not calling onPointerObservable
|
|
|
+ */
|
|
|
+ class PointerInfoPre extends PointerInfoBase {
|
|
|
+ constructor(type: number, event: PointerEvent | MouseWheelEvent, localX: number, localY: number);
|
|
|
+ localPosition: Vector2;
|
|
|
+ skipOnPointerObservable: boolean;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * This type contains all the data related to a pointer event in Babylon.js.
|
|
|
+ * The event member is an instance of PointerEvent for all types except PointerWheel and is of type MouseWheelEvent when type equals PointerWheel. The different event types can be found in the PointerEventTypes class.
|
|
|
+ */
|
|
|
+ class PointerInfo extends PointerInfoBase {
|
|
|
+ pickInfo: Nullable<PickingInfo>;
|
|
|
+ constructor(type: number, event: PointerEvent | MouseWheelEvent, pickInfo: Nullable<PickingInfo>);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
class StickValues {
|
|
|
x: number;
|
|
|
y: number;
|
|
@@ -6018,83 +6018,285 @@ declare module BABYLON {
|
|
|
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
- * Effect layer options. This helps customizing the behaviour
|
|
|
- * of the effect layer.
|
|
|
+ * This class can be used to get instrumentation data from a Babylon engine
|
|
|
*/
|
|
|
- interface IEffectLayerOptions {
|
|
|
+ class EngineInstrumentation implements IDisposable {
|
|
|
+ engine: Engine;
|
|
|
+ private _captureGPUFrameTime;
|
|
|
+ private _gpuFrameTimeToken;
|
|
|
+ private _gpuFrameTime;
|
|
|
+ private _captureShaderCompilationTime;
|
|
|
+ private _shaderCompilationTime;
|
|
|
+ private _onBeginFrameObserver;
|
|
|
+ private _onEndFrameObserver;
|
|
|
+ private _onBeforeShaderCompilationObserver;
|
|
|
+ private _onAfterShaderCompilationObserver;
|
|
|
/**
|
|
|
- * Multiplication factor apply to the canvas size to compute the render target size
|
|
|
- * used to generated the objects (the smaller the faster).
|
|
|
+ * Gets the perf counter used for GPU frame time
|
|
|
*/
|
|
|
- mainTextureRatio: number;
|
|
|
+ readonly gpuFrameTimeCounter: PerfCounter;
|
|
|
/**
|
|
|
- * Enforces a fixed size texture to ensure effect stability across devices.
|
|
|
+ * Gets the GPU frame time capture status
|
|
|
*/
|
|
|
- mainTextureFixedSize?: number;
|
|
|
/**
|
|
|
- * Alpha blending mode used to apply the blur. Default depends of the implementation.
|
|
|
+ * Enable or disable the GPU frame time capture
|
|
|
*/
|
|
|
- alphaBlendingMode: number;
|
|
|
+ captureGPUFrameTime: boolean;
|
|
|
/**
|
|
|
- * The camera attached to the layer.
|
|
|
+ * Gets the perf counter used for shader compilation time
|
|
|
*/
|
|
|
- camera: Nullable<Camera>;
|
|
|
+ readonly shaderCompilationTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the shader compilation time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the shader compilation time capture
|
|
|
+ */
|
|
|
+ captureShaderCompilationTime: boolean;
|
|
|
+ constructor(engine: Engine);
|
|
|
+ dispose(): void;
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
/**
|
|
|
- * The effect layer Helps adding post process effect blended with the main pass.
|
|
|
- *
|
|
|
- * This can be for instance use to generate glow or higlight effects on the scene.
|
|
|
- *
|
|
|
- * The effect layer class can not be used directly and is intented to inherited from to be
|
|
|
- * customized per effects.
|
|
|
+ * This class can be used to get instrumentation data from a Babylon engine
|
|
|
*/
|
|
|
- abstract class EffectLayer {
|
|
|
- /** The Friendly of the effect in the scene */
|
|
|
- name: string;
|
|
|
- private _vertexBuffers;
|
|
|
- private _indexBuffer;
|
|
|
- private _cachedDefines;
|
|
|
- private _effectLayerMapGenerationEffect;
|
|
|
- private _effectLayerOptions;
|
|
|
- private _mergeEffect;
|
|
|
- protected _scene: Scene;
|
|
|
- protected _engine: Engine;
|
|
|
- protected _maxSize: number;
|
|
|
- protected _mainTextureDesiredSize: ISize;
|
|
|
- protected _mainTexture: RenderTargetTexture;
|
|
|
- protected _shouldRender: boolean;
|
|
|
- protected _postProcesses: PostProcess[];
|
|
|
- protected _textures: BaseTexture[];
|
|
|
- protected _emissiveTextureAndColor: {
|
|
|
- texture: Nullable<BaseTexture>;
|
|
|
- color: Color4;
|
|
|
- };
|
|
|
+ class SceneInstrumentation implements IDisposable {
|
|
|
+ scene: Scene;
|
|
|
+ private _captureActiveMeshesEvaluationTime;
|
|
|
+ private _activeMeshesEvaluationTime;
|
|
|
+ private _captureRenderTargetsRenderTime;
|
|
|
+ private _renderTargetsRenderTime;
|
|
|
+ private _captureFrameTime;
|
|
|
+ private _frameTime;
|
|
|
+ private _captureRenderTime;
|
|
|
+ private _renderTime;
|
|
|
+ private _captureInterFrameTime;
|
|
|
+ private _interFrameTime;
|
|
|
+ private _captureParticlesRenderTime;
|
|
|
+ private _particlesRenderTime;
|
|
|
+ private _captureSpritesRenderTime;
|
|
|
+ private _spritesRenderTime;
|
|
|
+ private _capturePhysicsTime;
|
|
|
+ private _physicsTime;
|
|
|
+ private _captureAnimationsTime;
|
|
|
+ private _animationsTime;
|
|
|
+ private _onBeforeActiveMeshesEvaluationObserver;
|
|
|
+ private _onAfterActiveMeshesEvaluationObserver;
|
|
|
+ private _onBeforeRenderTargetsRenderObserver;
|
|
|
+ private _onAfterRenderTargetsRenderObserver;
|
|
|
+ private _onAfterRenderObserver;
|
|
|
+ private _onBeforeDrawPhaseObserver;
|
|
|
+ private _onAfterDrawPhaseObserver;
|
|
|
+ private _onBeforeAnimationsObserver;
|
|
|
+ private _onBeforeParticlesRenderingObserver;
|
|
|
+ private _onAfterParticlesRenderingObserver;
|
|
|
+ private _onBeforeSpritesRenderingObserver;
|
|
|
+ private _onAfterSpritesRenderingObserver;
|
|
|
+ private _onBeforePhysicsObserver;
|
|
|
+ private _onAfterPhysicsObserver;
|
|
|
+ private _onAfterAnimationsObserver;
|
|
|
/**
|
|
|
- * The clear color of the texture used to generate the glow map.
|
|
|
+ * Gets the perf counter used for active meshes evaluation time
|
|
|
*/
|
|
|
- neutralColor: Color4;
|
|
|
+ readonly activeMeshesEvaluationTimeCounter: PerfCounter;
|
|
|
/**
|
|
|
- * Specifies wether the highlight layer is enabled or not.
|
|
|
+ * Gets the active meshes evaluation time capture status
|
|
|
*/
|
|
|
- isEnabled: boolean;
|
|
|
/**
|
|
|
- * Gets the camera attached to the layer.
|
|
|
+ * Enable or disable the active meshes evaluation time capture
|
|
|
*/
|
|
|
- readonly camera: Nullable<Camera>;
|
|
|
+ captureActiveMeshesEvaluationTime: boolean;
|
|
|
/**
|
|
|
- * An event triggered when the effect layer has been disposed.
|
|
|
+ * Gets the perf counter used for render targets render time
|
|
|
*/
|
|
|
- onDisposeObservable: Observable<EffectLayer>;
|
|
|
+ readonly renderTargetsRenderTimeCounter: PerfCounter;
|
|
|
/**
|
|
|
- * An event triggered when the effect layer is about rendering the main texture with the glowy parts.
|
|
|
+ * Gets the render targets render time capture status
|
|
|
*/
|
|
|
- onBeforeRenderMainTextureObservable: Observable<EffectLayer>;
|
|
|
/**
|
|
|
- * An event triggered when the generated texture is being merged in the scene.
|
|
|
+ * Enable or disable the render targets render time capture
|
|
|
*/
|
|
|
- onBeforeComposeObservable: Observable<EffectLayer>;
|
|
|
+ captureRenderTargetsRenderTime: boolean;
|
|
|
/**
|
|
|
- * An event triggered when the generated texture has been merged in the scene.
|
|
|
+ * Gets the perf counter used for particles render time
|
|
|
+ */
|
|
|
+ readonly particlesRenderTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the particles render time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the particles render time capture
|
|
|
+ */
|
|
|
+ captureParticlesRenderTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for sprites render time
|
|
|
+ */
|
|
|
+ readonly spritesRenderTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the sprites render time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the sprites render time capture
|
|
|
+ */
|
|
|
+ captureSpritesRenderTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for physics time
|
|
|
+ */
|
|
|
+ readonly physicsTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the physics time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the physics time capture
|
|
|
+ */
|
|
|
+ capturePhysicsTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for animations time
|
|
|
+ */
|
|
|
+ readonly animationsTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the animations time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the animations time capture
|
|
|
+ */
|
|
|
+ captureAnimationsTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for frame time capture
|
|
|
+ */
|
|
|
+ readonly frameTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the frame time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the frame time capture
|
|
|
+ */
|
|
|
+ captureFrameTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for inter-frames time capture
|
|
|
+ */
|
|
|
+ readonly interFrameTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the inter-frames time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the inter-frames time capture
|
|
|
+ */
|
|
|
+ captureInterFrameTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for render time capture
|
|
|
+ */
|
|
|
+ readonly renderTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the render time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the render time capture
|
|
|
+ */
|
|
|
+ captureRenderTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for draw calls
|
|
|
+ */
|
|
|
+ readonly drawCallsCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for texture collisions
|
|
|
+ */
|
|
|
+ readonly textureCollisionsCounter: PerfCounter;
|
|
|
+ constructor(scene: Scene);
|
|
|
+ dispose(): void;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class _TimeToken {
|
|
|
+ _startTimeQuery: Nullable<WebGLQuery>;
|
|
|
+ _endTimeQuery: Nullable<WebGLQuery>;
|
|
|
+ _timeElapsedQuery: Nullable<WebGLQuery>;
|
|
|
+ _timeElapsedQueryEnded: boolean;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ /**
|
|
|
+ * Effect layer options. This helps customizing the behaviour
|
|
|
+ * of the effect layer.
|
|
|
+ */
|
|
|
+ interface IEffectLayerOptions {
|
|
|
+ /**
|
|
|
+ * Multiplication factor apply to the canvas size to compute the render target size
|
|
|
+ * used to generated the objects (the smaller the faster).
|
|
|
+ */
|
|
|
+ mainTextureRatio: number;
|
|
|
+ /**
|
|
|
+ * Enforces a fixed size texture to ensure effect stability across devices.
|
|
|
+ */
|
|
|
+ mainTextureFixedSize?: number;
|
|
|
+ /**
|
|
|
+ * Alpha blending mode used to apply the blur. Default depends of the implementation.
|
|
|
+ */
|
|
|
+ alphaBlendingMode: number;
|
|
|
+ /**
|
|
|
+ * The camera attached to the layer.
|
|
|
+ */
|
|
|
+ camera: Nullable<Camera>;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * The effect layer Helps adding post process effect blended with the main pass.
|
|
|
+ *
|
|
|
+ * This can be for instance use to generate glow or higlight effects on the scene.
|
|
|
+ *
|
|
|
+ * The effect layer class can not be used directly and is intented to inherited from to be
|
|
|
+ * customized per effects.
|
|
|
+ */
|
|
|
+ abstract class EffectLayer {
|
|
|
+ /** The Friendly of the effect in the scene */
|
|
|
+ name: string;
|
|
|
+ private _vertexBuffers;
|
|
|
+ private _indexBuffer;
|
|
|
+ private _cachedDefines;
|
|
|
+ private _effectLayerMapGenerationEffect;
|
|
|
+ private _effectLayerOptions;
|
|
|
+ private _mergeEffect;
|
|
|
+ protected _scene: Scene;
|
|
|
+ protected _engine: Engine;
|
|
|
+ protected _maxSize: number;
|
|
|
+ protected _mainTextureDesiredSize: ISize;
|
|
|
+ protected _mainTexture: RenderTargetTexture;
|
|
|
+ protected _shouldRender: boolean;
|
|
|
+ protected _postProcesses: PostProcess[];
|
|
|
+ protected _textures: BaseTexture[];
|
|
|
+ protected _emissiveTextureAndColor: {
|
|
|
+ texture: Nullable<BaseTexture>;
|
|
|
+ color: Color4;
|
|
|
+ };
|
|
|
+ /**
|
|
|
+ * The clear color of the texture used to generate the glow map.
|
|
|
+ */
|
|
|
+ neutralColor: Color4;
|
|
|
+ /**
|
|
|
+ * Specifies wether the highlight layer is enabled or not.
|
|
|
+ */
|
|
|
+ isEnabled: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the camera attached to the layer.
|
|
|
+ */
|
|
|
+ readonly camera: Nullable<Camera>;
|
|
|
+ /**
|
|
|
+ * An event triggered when the effect layer has been disposed.
|
|
|
+ */
|
|
|
+ onDisposeObservable: Observable<EffectLayer>;
|
|
|
+ /**
|
|
|
+ * An event triggered when the effect layer is about rendering the main texture with the glowy parts.
|
|
|
+ */
|
|
|
+ onBeforeRenderMainTextureObservable: Observable<EffectLayer>;
|
|
|
+ /**
|
|
|
+ * An event triggered when the generated texture is being merged in the scene.
|
|
|
+ */
|
|
|
+ onBeforeComposeObservable: Observable<EffectLayer>;
|
|
|
+ /**
|
|
|
+ * An event triggered when the generated texture has been merged in the scene.
|
|
|
*/
|
|
|
onAfterComposeObservable: Observable<EffectLayer>;
|
|
|
/**
|
|
@@ -6644,208 +6846,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- /**
|
|
|
- * This class can be used to get instrumentation data from a Babylon engine
|
|
|
- */
|
|
|
- class EngineInstrumentation implements IDisposable {
|
|
|
- engine: Engine;
|
|
|
- private _captureGPUFrameTime;
|
|
|
- private _gpuFrameTimeToken;
|
|
|
- private _gpuFrameTime;
|
|
|
- private _captureShaderCompilationTime;
|
|
|
- private _shaderCompilationTime;
|
|
|
- private _onBeginFrameObserver;
|
|
|
- private _onEndFrameObserver;
|
|
|
- private _onBeforeShaderCompilationObserver;
|
|
|
- private _onAfterShaderCompilationObserver;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for GPU frame time
|
|
|
- */
|
|
|
- readonly gpuFrameTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the GPU frame time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the GPU frame time capture
|
|
|
- */
|
|
|
- captureGPUFrameTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for shader compilation time
|
|
|
- */
|
|
|
- readonly shaderCompilationTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the shader compilation time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the shader compilation time capture
|
|
|
- */
|
|
|
- captureShaderCompilationTime: boolean;
|
|
|
- constructor(engine: Engine);
|
|
|
- dispose(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- /**
|
|
|
- * This class can be used to get instrumentation data from a Babylon engine
|
|
|
- */
|
|
|
- class SceneInstrumentation implements IDisposable {
|
|
|
- scene: Scene;
|
|
|
- private _captureActiveMeshesEvaluationTime;
|
|
|
- private _activeMeshesEvaluationTime;
|
|
|
- private _captureRenderTargetsRenderTime;
|
|
|
- private _renderTargetsRenderTime;
|
|
|
- private _captureFrameTime;
|
|
|
- private _frameTime;
|
|
|
- private _captureRenderTime;
|
|
|
- private _renderTime;
|
|
|
- private _captureInterFrameTime;
|
|
|
- private _interFrameTime;
|
|
|
- private _captureParticlesRenderTime;
|
|
|
- private _particlesRenderTime;
|
|
|
- private _captureSpritesRenderTime;
|
|
|
- private _spritesRenderTime;
|
|
|
- private _capturePhysicsTime;
|
|
|
- private _physicsTime;
|
|
|
- private _captureAnimationsTime;
|
|
|
- private _animationsTime;
|
|
|
- private _onBeforeActiveMeshesEvaluationObserver;
|
|
|
- private _onAfterActiveMeshesEvaluationObserver;
|
|
|
- private _onBeforeRenderTargetsRenderObserver;
|
|
|
- private _onAfterRenderTargetsRenderObserver;
|
|
|
- private _onAfterRenderObserver;
|
|
|
- private _onBeforeDrawPhaseObserver;
|
|
|
- private _onAfterDrawPhaseObserver;
|
|
|
- private _onBeforeAnimationsObserver;
|
|
|
- private _onBeforeParticlesRenderingObserver;
|
|
|
- private _onAfterParticlesRenderingObserver;
|
|
|
- private _onBeforeSpritesRenderingObserver;
|
|
|
- private _onAfterSpritesRenderingObserver;
|
|
|
- private _onBeforePhysicsObserver;
|
|
|
- private _onAfterPhysicsObserver;
|
|
|
- private _onAfterAnimationsObserver;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for active meshes evaluation time
|
|
|
- */
|
|
|
- readonly activeMeshesEvaluationTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the active meshes evaluation time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the active meshes evaluation time capture
|
|
|
- */
|
|
|
- captureActiveMeshesEvaluationTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for render targets render time
|
|
|
- */
|
|
|
- readonly renderTargetsRenderTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the render targets render time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the render targets render time capture
|
|
|
- */
|
|
|
- captureRenderTargetsRenderTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for particles render time
|
|
|
- */
|
|
|
- readonly particlesRenderTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the particles render time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the particles render time capture
|
|
|
- */
|
|
|
- captureParticlesRenderTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for sprites render time
|
|
|
- */
|
|
|
- readonly spritesRenderTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the sprites render time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the sprites render time capture
|
|
|
- */
|
|
|
- captureSpritesRenderTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for physics time
|
|
|
- */
|
|
|
- readonly physicsTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the physics time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the physics time capture
|
|
|
- */
|
|
|
- capturePhysicsTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for animations time
|
|
|
- */
|
|
|
- readonly animationsTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the animations time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the animations time capture
|
|
|
- */
|
|
|
- captureAnimationsTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for frame time capture
|
|
|
- */
|
|
|
- readonly frameTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the frame time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the frame time capture
|
|
|
- */
|
|
|
- captureFrameTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for inter-frames time capture
|
|
|
- */
|
|
|
- readonly interFrameTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the inter-frames time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the inter-frames time capture
|
|
|
- */
|
|
|
- captureInterFrameTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for render time capture
|
|
|
- */
|
|
|
- readonly renderTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the render time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the render time capture
|
|
|
- */
|
|
|
- captureRenderTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for draw calls
|
|
|
- */
|
|
|
- readonly drawCallsCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for texture collisions
|
|
|
- */
|
|
|
- readonly textureCollisionsCounter: PerfCounter;
|
|
|
- constructor(scene: Scene);
|
|
|
- dispose(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class _TimeToken {
|
|
|
- _startTimeQuery: Nullable<WebGLQuery>;
|
|
|
- _endTimeQuery: Nullable<WebGLQuery>;
|
|
|
- _timeElapsedQuery: Nullable<WebGLQuery>;
|
|
|
- _timeElapsedQueryEnded: boolean;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class LensFlare {
|
|
|
size: number;
|
|
|
position: number;
|