/** * @author Richard Davey * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ declare var CanvasPool: any; declare var Class: any; declare var IsSizePowerOfTwo: (width: any, height: any) => boolean; declare var ScaleModes: any; /** * @classdesc * A Texture Source is the encapsulation of the actual source data for a Texture. * This is typically an Image Element, loaded from the file system or network, or a Canvas Element. * * A Texture can contain multiple Texture Sources, which only happens when a multi-atlas is loaded. * * @class TextureSource * @memberOf Phaser.Textures * @constructor * @since 3.0.0 * * @param {Phaser.Textures.Texture} texture - The Texture this TextureSource belongs to. * @param {(HTMLImageElement|HTMLCanvasElement)} source - The source image data. * @param {integer} [width] - Optional width of the source image. If not given it's derived from the source itself. * @param {integer} [height] - Optional height of the source image. If not given it's derived from the source itself. */ declare var TextureSource: any;