|
@@ -2607,188 +2607,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- class Analyser {
|
|
|
|
- SMOOTHING: number;
|
|
|
|
- FFT_SIZE: number;
|
|
|
|
- BARGRAPHAMPLITUDE: number;
|
|
|
|
- DEBUGCANVASPOS: {
|
|
|
|
- x: number;
|
|
|
|
- y: number;
|
|
|
|
- };
|
|
|
|
- DEBUGCANVASSIZE: {
|
|
|
|
- width: number;
|
|
|
|
- height: number;
|
|
|
|
- };
|
|
|
|
- private _byteFreqs;
|
|
|
|
- private _byteTime;
|
|
|
|
- private _floatFreqs;
|
|
|
|
- private _webAudioAnalyser;
|
|
|
|
- private _debugCanvas;
|
|
|
|
- private _debugCanvasContext;
|
|
|
|
- private _scene;
|
|
|
|
- private _registerFunc;
|
|
|
|
- private _audioEngine;
|
|
|
|
- constructor(scene: Scene);
|
|
|
|
- getFrequencyBinCount(): number;
|
|
|
|
- getByteFrequencyData(): Uint8Array;
|
|
|
|
- getByteTimeDomainData(): Uint8Array;
|
|
|
|
- getFloatFrequencyData(): Uint8Array;
|
|
|
|
- drawDebugCanvas(): void;
|
|
|
|
- stopDebugCanvas(): void;
|
|
|
|
- connectAudioNodes(inputAudioNode: AudioNode, outputAudioNode: AudioNode): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class AudioEngine {
|
|
|
|
- private _audioContext;
|
|
|
|
- private _audioContextInitialized;
|
|
|
|
- canUseWebAudio: boolean;
|
|
|
|
- masterGain: GainNode;
|
|
|
|
- private _connectedAnalyser;
|
|
|
|
- WarnedWebAudioUnsupported: boolean;
|
|
|
|
- unlocked: boolean;
|
|
|
|
- onAudioUnlocked: () => any;
|
|
|
|
- isMP3supported: boolean;
|
|
|
|
- isOGGsupported: boolean;
|
|
|
|
- readonly audioContext: AudioContext;
|
|
|
|
- constructor();
|
|
|
|
- private _unlockiOSaudio();
|
|
|
|
- private _initializeAudioContext();
|
|
|
|
- dispose(): void;
|
|
|
|
- getGlobalVolume(): number;
|
|
|
|
- setGlobalVolume(newVolume: number): void;
|
|
|
|
- connectToAnalyser(analyser: Analyser): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class Sound {
|
|
|
|
- name: string;
|
|
|
|
- autoplay: boolean;
|
|
|
|
- loop: boolean;
|
|
|
|
- useCustomAttenuation: boolean;
|
|
|
|
- soundTrackId: number;
|
|
|
|
- spatialSound: boolean;
|
|
|
|
- refDistance: number;
|
|
|
|
- rolloffFactor: number;
|
|
|
|
- maxDistance: number;
|
|
|
|
- distanceModel: string;
|
|
|
|
- private _panningModel;
|
|
|
|
- onended: () => any;
|
|
|
|
- private _playbackRate;
|
|
|
|
- private _streaming;
|
|
|
|
- private _startTime;
|
|
|
|
- private _startOffset;
|
|
|
|
- private _position;
|
|
|
|
- private _localDirection;
|
|
|
|
- private _volume;
|
|
|
|
- private _isLoaded;
|
|
|
|
- private _isReadyToPlay;
|
|
|
|
- isPlaying: boolean;
|
|
|
|
- isPaused: boolean;
|
|
|
|
- private _isDirectional;
|
|
|
|
- private _readyToPlayCallback;
|
|
|
|
- private _audioBuffer;
|
|
|
|
- private _soundSource;
|
|
|
|
- private _streamingSource;
|
|
|
|
- private _soundPanner;
|
|
|
|
- private _soundGain;
|
|
|
|
- private _inputAudioNode;
|
|
|
|
- private _ouputAudioNode;
|
|
|
|
- private _coneInnerAngle;
|
|
|
|
- private _coneOuterAngle;
|
|
|
|
- private _coneOuterGain;
|
|
|
|
- private _scene;
|
|
|
|
- private _connectedMesh;
|
|
|
|
- private _customAttenuationFunction;
|
|
|
|
- private _registerFunc;
|
|
|
|
- private _isOutputConnected;
|
|
|
|
- private _htmlAudioElement;
|
|
|
|
- private _urlType;
|
|
|
|
- /**
|
|
|
|
- * Create a sound and attach it to a scene
|
|
|
|
- * @param name Name of your sound
|
|
|
|
- * @param urlOrArrayBuffer Url to the sound to load async or ArrayBuffer
|
|
|
|
- * @param readyToPlayCallback Provide a callback function if you'd like to load your code once the sound is ready to be played
|
|
|
|
- * @param options Objects to provide with the current available options: autoplay, loop, volume, spatialSound, maxDistance, rolloffFactor, refDistance, distanceModel, panningModel, streaming
|
|
|
|
- */
|
|
|
|
- constructor(name: string, urlOrArrayBuffer: any, scene: Scene, readyToPlayCallback?: () => void, options?: any);
|
|
|
|
- dispose(): void;
|
|
|
|
- isReady(): boolean;
|
|
|
|
- private _soundLoaded(audioData);
|
|
|
|
- setAudioBuffer(audioBuffer: AudioBuffer): void;
|
|
|
|
- updateOptions(options: any): void;
|
|
|
|
- private _createSpatialParameters();
|
|
|
|
- private _updateSpatialParameters();
|
|
|
|
- switchPanningModelToHRTF(): void;
|
|
|
|
- switchPanningModelToEqualPower(): void;
|
|
|
|
- private _switchPanningModel();
|
|
|
|
- connectToSoundTrackAudioNode(soundTrackAudioNode: AudioNode): void;
|
|
|
|
- /**
|
|
|
|
- * Transform this sound into a directional source
|
|
|
|
- * @param coneInnerAngle Size of the inner cone in degree
|
|
|
|
- * @param coneOuterAngle Size of the outer cone in degree
|
|
|
|
- * @param coneOuterGain Volume of the sound outside the outer cone (between 0.0 and 1.0)
|
|
|
|
- */
|
|
|
|
- setDirectionalCone(coneInnerAngle: number, coneOuterAngle: number, coneOuterGain: number): void;
|
|
|
|
- setPosition(newPosition: Vector3): void;
|
|
|
|
- setLocalDirectionToMesh(newLocalDirection: Vector3): void;
|
|
|
|
- private _updateDirection();
|
|
|
|
- updateDistanceFromListener(): void;
|
|
|
|
- setAttenuationFunction(callback: (currentVolume: number, currentDistance: number, maxDistance: number, refDistance: number, rolloffFactor: number) => number): void;
|
|
|
|
- /**
|
|
|
|
- * Play the sound
|
|
|
|
- * @param time (optional) Start the sound after X seconds. Start immediately (0) by default.
|
|
|
|
- * @param offset (optional) Start the sound setting it at a specific time
|
|
|
|
- */
|
|
|
|
- play(time?: number, offset?: number): void;
|
|
|
|
- private _onended();
|
|
|
|
- /**
|
|
|
|
- * Stop the sound
|
|
|
|
- * @param time (optional) Stop the sound after X seconds. Stop immediately (0) by default.
|
|
|
|
- */
|
|
|
|
- stop(time?: number): void;
|
|
|
|
- pause(): void;
|
|
|
|
- setVolume(newVolume: number, time?: number): void;
|
|
|
|
- setPlaybackRate(newPlaybackRate: number): void;
|
|
|
|
- getVolume(): number;
|
|
|
|
- attachToMesh(meshToConnectTo: AbstractMesh): void;
|
|
|
|
- detachFromMesh(): void;
|
|
|
|
- private _onRegisterAfterWorldMatrixUpdate(connectedMesh);
|
|
|
|
- clone(): Sound;
|
|
|
|
- getAudioBuffer(): AudioBuffer;
|
|
|
|
- serialize(): any;
|
|
|
|
- static Parse(parsedSound: any, scene: Scene, rootUrl: string, sourceSound?: Sound): Sound;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class SoundTrack {
|
|
|
|
- private _outputAudioNode;
|
|
|
|
- private _inputAudioNode;
|
|
|
|
- private _trackConvolver;
|
|
|
|
- private _scene;
|
|
|
|
- id: number;
|
|
|
|
- soundCollection: Array<Sound>;
|
|
|
|
- private _isMainTrack;
|
|
|
|
- private _connectedAnalyser;
|
|
|
|
- private _options;
|
|
|
|
- private _isInitialized;
|
|
|
|
- constructor(scene: Scene, options?: any);
|
|
|
|
- private _initializeSoundTrackAudioGraph();
|
|
|
|
- dispose(): void;
|
|
|
|
- AddSound(sound: Sound): void;
|
|
|
|
- RemoveSound(sound: Sound): void;
|
|
|
|
- setVolume(newVolume: number): void;
|
|
|
|
- switchPanningModelToHRTF(): void;
|
|
|
|
- switchPanningModelToEqualPower(): void;
|
|
|
|
- connectToAnalyser(analyser: Analyser): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
class Animatable {
|
|
class Animatable {
|
|
target: any;
|
|
target: any;
|
|
fromFrame: number;
|
|
fromFrame: number;
|
|
@@ -3064,6 +2882,188 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ class Analyser {
|
|
|
|
+ SMOOTHING: number;
|
|
|
|
+ FFT_SIZE: number;
|
|
|
|
+ BARGRAPHAMPLITUDE: number;
|
|
|
|
+ DEBUGCANVASPOS: {
|
|
|
|
+ x: number;
|
|
|
|
+ y: number;
|
|
|
|
+ };
|
|
|
|
+ DEBUGCANVASSIZE: {
|
|
|
|
+ width: number;
|
|
|
|
+ height: number;
|
|
|
|
+ };
|
|
|
|
+ private _byteFreqs;
|
|
|
|
+ private _byteTime;
|
|
|
|
+ private _floatFreqs;
|
|
|
|
+ private _webAudioAnalyser;
|
|
|
|
+ private _debugCanvas;
|
|
|
|
+ private _debugCanvasContext;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _registerFunc;
|
|
|
|
+ private _audioEngine;
|
|
|
|
+ constructor(scene: Scene);
|
|
|
|
+ getFrequencyBinCount(): number;
|
|
|
|
+ getByteFrequencyData(): Uint8Array;
|
|
|
|
+ getByteTimeDomainData(): Uint8Array;
|
|
|
|
+ getFloatFrequencyData(): Uint8Array;
|
|
|
|
+ drawDebugCanvas(): void;
|
|
|
|
+ stopDebugCanvas(): void;
|
|
|
|
+ connectAudioNodes(inputAudioNode: AudioNode, outputAudioNode: AudioNode): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class AudioEngine {
|
|
|
|
+ private _audioContext;
|
|
|
|
+ private _audioContextInitialized;
|
|
|
|
+ canUseWebAudio: boolean;
|
|
|
|
+ masterGain: GainNode;
|
|
|
|
+ private _connectedAnalyser;
|
|
|
|
+ WarnedWebAudioUnsupported: boolean;
|
|
|
|
+ unlocked: boolean;
|
|
|
|
+ onAudioUnlocked: () => any;
|
|
|
|
+ isMP3supported: boolean;
|
|
|
|
+ isOGGsupported: boolean;
|
|
|
|
+ readonly audioContext: AudioContext;
|
|
|
|
+ constructor();
|
|
|
|
+ private _unlockiOSaudio();
|
|
|
|
+ private _initializeAudioContext();
|
|
|
|
+ dispose(): void;
|
|
|
|
+ getGlobalVolume(): number;
|
|
|
|
+ setGlobalVolume(newVolume: number): void;
|
|
|
|
+ connectToAnalyser(analyser: Analyser): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class Sound {
|
|
|
|
+ name: string;
|
|
|
|
+ autoplay: boolean;
|
|
|
|
+ loop: boolean;
|
|
|
|
+ useCustomAttenuation: boolean;
|
|
|
|
+ soundTrackId: number;
|
|
|
|
+ spatialSound: boolean;
|
|
|
|
+ refDistance: number;
|
|
|
|
+ rolloffFactor: number;
|
|
|
|
+ maxDistance: number;
|
|
|
|
+ distanceModel: string;
|
|
|
|
+ private _panningModel;
|
|
|
|
+ onended: () => any;
|
|
|
|
+ private _playbackRate;
|
|
|
|
+ private _streaming;
|
|
|
|
+ private _startTime;
|
|
|
|
+ private _startOffset;
|
|
|
|
+ private _position;
|
|
|
|
+ private _localDirection;
|
|
|
|
+ private _volume;
|
|
|
|
+ private _isLoaded;
|
|
|
|
+ private _isReadyToPlay;
|
|
|
|
+ isPlaying: boolean;
|
|
|
|
+ isPaused: boolean;
|
|
|
|
+ private _isDirectional;
|
|
|
|
+ private _readyToPlayCallback;
|
|
|
|
+ private _audioBuffer;
|
|
|
|
+ private _soundSource;
|
|
|
|
+ private _streamingSource;
|
|
|
|
+ private _soundPanner;
|
|
|
|
+ private _soundGain;
|
|
|
|
+ private _inputAudioNode;
|
|
|
|
+ private _ouputAudioNode;
|
|
|
|
+ private _coneInnerAngle;
|
|
|
|
+ private _coneOuterAngle;
|
|
|
|
+ private _coneOuterGain;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _connectedMesh;
|
|
|
|
+ private _customAttenuationFunction;
|
|
|
|
+ private _registerFunc;
|
|
|
|
+ private _isOutputConnected;
|
|
|
|
+ private _htmlAudioElement;
|
|
|
|
+ private _urlType;
|
|
|
|
+ /**
|
|
|
|
+ * Create a sound and attach it to a scene
|
|
|
|
+ * @param name Name of your sound
|
|
|
|
+ * @param urlOrArrayBuffer Url to the sound to load async or ArrayBuffer
|
|
|
|
+ * @param readyToPlayCallback Provide a callback function if you'd like to load your code once the sound is ready to be played
|
|
|
|
+ * @param options Objects to provide with the current available options: autoplay, loop, volume, spatialSound, maxDistance, rolloffFactor, refDistance, distanceModel, panningModel, streaming
|
|
|
|
+ */
|
|
|
|
+ constructor(name: string, urlOrArrayBuffer: any, scene: Scene, readyToPlayCallback?: () => void, options?: any);
|
|
|
|
+ dispose(): void;
|
|
|
|
+ isReady(): boolean;
|
|
|
|
+ private _soundLoaded(audioData);
|
|
|
|
+ setAudioBuffer(audioBuffer: AudioBuffer): void;
|
|
|
|
+ updateOptions(options: any): void;
|
|
|
|
+ private _createSpatialParameters();
|
|
|
|
+ private _updateSpatialParameters();
|
|
|
|
+ switchPanningModelToHRTF(): void;
|
|
|
|
+ switchPanningModelToEqualPower(): void;
|
|
|
|
+ private _switchPanningModel();
|
|
|
|
+ connectToSoundTrackAudioNode(soundTrackAudioNode: AudioNode): void;
|
|
|
|
+ /**
|
|
|
|
+ * Transform this sound into a directional source
|
|
|
|
+ * @param coneInnerAngle Size of the inner cone in degree
|
|
|
|
+ * @param coneOuterAngle Size of the outer cone in degree
|
|
|
|
+ * @param coneOuterGain Volume of the sound outside the outer cone (between 0.0 and 1.0)
|
|
|
|
+ */
|
|
|
|
+ setDirectionalCone(coneInnerAngle: number, coneOuterAngle: number, coneOuterGain: number): void;
|
|
|
|
+ setPosition(newPosition: Vector3): void;
|
|
|
|
+ setLocalDirectionToMesh(newLocalDirection: Vector3): void;
|
|
|
|
+ private _updateDirection();
|
|
|
|
+ updateDistanceFromListener(): void;
|
|
|
|
+ setAttenuationFunction(callback: (currentVolume: number, currentDistance: number, maxDistance: number, refDistance: number, rolloffFactor: number) => number): void;
|
|
|
|
+ /**
|
|
|
|
+ * Play the sound
|
|
|
|
+ * @param time (optional) Start the sound after X seconds. Start immediately (0) by default.
|
|
|
|
+ * @param offset (optional) Start the sound setting it at a specific time
|
|
|
|
+ */
|
|
|
|
+ play(time?: number, offset?: number): void;
|
|
|
|
+ private _onended();
|
|
|
|
+ /**
|
|
|
|
+ * Stop the sound
|
|
|
|
+ * @param time (optional) Stop the sound after X seconds. Stop immediately (0) by default.
|
|
|
|
+ */
|
|
|
|
+ stop(time?: number): void;
|
|
|
|
+ pause(): void;
|
|
|
|
+ setVolume(newVolume: number, time?: number): void;
|
|
|
|
+ setPlaybackRate(newPlaybackRate: number): void;
|
|
|
|
+ getVolume(): number;
|
|
|
|
+ attachToMesh(meshToConnectTo: AbstractMesh): void;
|
|
|
|
+ detachFromMesh(): void;
|
|
|
|
+ private _onRegisterAfterWorldMatrixUpdate(connectedMesh);
|
|
|
|
+ clone(): Sound;
|
|
|
|
+ getAudioBuffer(): AudioBuffer;
|
|
|
|
+ serialize(): any;
|
|
|
|
+ static Parse(parsedSound: any, scene: Scene, rootUrl: string, sourceSound?: Sound): Sound;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class SoundTrack {
|
|
|
|
+ private _outputAudioNode;
|
|
|
|
+ private _inputAudioNode;
|
|
|
|
+ private _trackConvolver;
|
|
|
|
+ private _scene;
|
|
|
|
+ id: number;
|
|
|
|
+ soundCollection: Array<Sound>;
|
|
|
|
+ private _isMainTrack;
|
|
|
|
+ private _connectedAnalyser;
|
|
|
|
+ private _options;
|
|
|
|
+ private _isInitialized;
|
|
|
|
+ constructor(scene: Scene, options?: any);
|
|
|
|
+ private _initializeSoundTrackAudioGraph();
|
|
|
|
+ dispose(): void;
|
|
|
|
+ AddSound(sound: Sound): void;
|
|
|
|
+ RemoveSound(sound: Sound): void;
|
|
|
|
+ setVolume(newVolume: number): void;
|
|
|
|
+ switchPanningModelToHRTF(): void;
|
|
|
|
+ switchPanningModelToEqualPower(): void;
|
|
|
|
+ connectToAnalyser(analyser: Analyser): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
interface Behavior<T extends Node> {
|
|
interface Behavior<T extends Node> {
|
|
name: string;
|
|
name: string;
|
|
attach(node: T): void;
|
|
attach(node: T): void;
|
|
@@ -14500,6 +14500,76 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class Sprite {
|
|
|
|
+ name: string;
|
|
|
|
+ position: Vector3;
|
|
|
|
+ color: Color4;
|
|
|
|
+ width: number;
|
|
|
|
+ height: number;
|
|
|
|
+ angle: number;
|
|
|
|
+ cellIndex: number;
|
|
|
|
+ invertU: number;
|
|
|
|
+ invertV: number;
|
|
|
|
+ disposeWhenFinishedAnimating: boolean;
|
|
|
|
+ animations: Animation[];
|
|
|
|
+ isPickable: boolean;
|
|
|
|
+ actionManager: ActionManager;
|
|
|
|
+ private _animationStarted;
|
|
|
|
+ private _loopAnimation;
|
|
|
|
+ private _fromIndex;
|
|
|
|
+ private _toIndex;
|
|
|
|
+ private _delay;
|
|
|
|
+ private _direction;
|
|
|
|
+ private _frameCount;
|
|
|
|
+ private _manager;
|
|
|
|
+ private _time;
|
|
|
|
+ private _onAnimationEnd;
|
|
|
|
+ size: number;
|
|
|
|
+ constructor(name: string, manager: SpriteManager);
|
|
|
|
+ playAnimation(from: number, to: number, loop: boolean, delay: number, onAnimationEnd: () => void): void;
|
|
|
|
+ stopAnimation(): void;
|
|
|
|
+ _animate(deltaTime: number): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class SpriteManager {
|
|
|
|
+ name: string;
|
|
|
|
+ sprites: Sprite[];
|
|
|
|
+ renderingGroupId: number;
|
|
|
|
+ layerMask: number;
|
|
|
|
+ fogEnabled: boolean;
|
|
|
|
+ isPickable: boolean;
|
|
|
|
+ cellWidth: number;
|
|
|
|
+ cellHeight: number;
|
|
|
|
+ /**
|
|
|
|
+ * An event triggered when the manager is disposed.
|
|
|
|
+ * @type {BABYLON.Observable}
|
|
|
|
+ */
|
|
|
|
+ onDisposeObservable: Observable<SpriteManager>;
|
|
|
|
+ private _onDisposeObserver;
|
|
|
|
+ onDispose: () => void;
|
|
|
|
+ private _capacity;
|
|
|
|
+ private _spriteTexture;
|
|
|
|
+ private _epsilon;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _vertexData;
|
|
|
|
+ private _buffer;
|
|
|
|
+ private _vertexBuffers;
|
|
|
|
+ private _indexBuffer;
|
|
|
|
+ private _effectBase;
|
|
|
|
+ private _effectFog;
|
|
|
|
+ texture: Texture;
|
|
|
|
+ constructor(name: string, imgUrl: string, capacity: number, cellSize: any, scene: Scene, epsilon?: number, samplingMode?: number);
|
|
|
|
+ private _appendSpriteVertex(index, sprite, offsetX, offsetY, rowSize);
|
|
|
|
+ intersects(ray: Ray, camera: Camera, predicate?: (sprite: Sprite) => boolean, fastCheck?: boolean): PickingInfo;
|
|
|
|
+ render(): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
declare module BABYLON.Internals {
|
|
declare module BABYLON.Internals {
|
|
class _AlphaState {
|
|
class _AlphaState {
|
|
private _isAlphaBlendDirty;
|
|
private _isAlphaBlendDirty;
|
|
@@ -14583,76 +14653,6 @@ declare module BABYLON.Internals {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class Sprite {
|
|
|
|
- name: string;
|
|
|
|
- position: Vector3;
|
|
|
|
- color: Color4;
|
|
|
|
- width: number;
|
|
|
|
- height: number;
|
|
|
|
- angle: number;
|
|
|
|
- cellIndex: number;
|
|
|
|
- invertU: number;
|
|
|
|
- invertV: number;
|
|
|
|
- disposeWhenFinishedAnimating: boolean;
|
|
|
|
- animations: Animation[];
|
|
|
|
- isPickable: boolean;
|
|
|
|
- actionManager: ActionManager;
|
|
|
|
- private _animationStarted;
|
|
|
|
- private _loopAnimation;
|
|
|
|
- private _fromIndex;
|
|
|
|
- private _toIndex;
|
|
|
|
- private _delay;
|
|
|
|
- private _direction;
|
|
|
|
- private _frameCount;
|
|
|
|
- private _manager;
|
|
|
|
- private _time;
|
|
|
|
- private _onAnimationEnd;
|
|
|
|
- size: number;
|
|
|
|
- constructor(name: string, manager: SpriteManager);
|
|
|
|
- playAnimation(from: number, to: number, loop: boolean, delay: number, onAnimationEnd: () => void): void;
|
|
|
|
- stopAnimation(): void;
|
|
|
|
- _animate(deltaTime: number): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class SpriteManager {
|
|
|
|
- name: string;
|
|
|
|
- sprites: Sprite[];
|
|
|
|
- renderingGroupId: number;
|
|
|
|
- layerMask: number;
|
|
|
|
- fogEnabled: boolean;
|
|
|
|
- isPickable: boolean;
|
|
|
|
- cellWidth: number;
|
|
|
|
- cellHeight: number;
|
|
|
|
- /**
|
|
|
|
- * An event triggered when the manager is disposed.
|
|
|
|
- * @type {BABYLON.Observable}
|
|
|
|
- */
|
|
|
|
- onDisposeObservable: Observable<SpriteManager>;
|
|
|
|
- private _onDisposeObserver;
|
|
|
|
- onDispose: () => void;
|
|
|
|
- private _capacity;
|
|
|
|
- private _spriteTexture;
|
|
|
|
- private _epsilon;
|
|
|
|
- private _scene;
|
|
|
|
- private _vertexData;
|
|
|
|
- private _buffer;
|
|
|
|
- private _vertexBuffers;
|
|
|
|
- private _indexBuffer;
|
|
|
|
- private _effectBase;
|
|
|
|
- private _effectFog;
|
|
|
|
- texture: Texture;
|
|
|
|
- constructor(name: string, imgUrl: string, capacity: number, cellSize: any, scene: Scene, epsilon?: number, samplingMode?: number);
|
|
|
|
- private _appendSpriteVertex(index, sprite, offsetX, offsetY, rowSize);
|
|
|
|
- intersects(ray: Ray, camera: Camera, predicate?: (sprite: Sprite) => boolean, fastCheck?: boolean): PickingInfo;
|
|
|
|
- render(): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
declare module BABYLON.Internals {
|
|
declare module BABYLON.Internals {
|
|
class AndOrNotEvaluator {
|
|
class AndOrNotEvaluator {
|
|
static Eval(query: string, evaluateCallback: (val: any) => boolean): boolean;
|
|
static Eval(query: string, evaluateCallback: (val: any) => boolean): boolean;
|