2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
2020-01-15 12:07:09 +00:00
|
|
|
* @copyright 2020 Photon Storm Ltd.
|
2019-05-10 15:15:04 +00:00
|
|
|
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
2018-02-12 16:01:20 +00:00
|
|
|
*/
|
|
|
|
|
2018-03-29 14:50:48 +00:00
|
|
|
var Extend = require('../utils/object/Extend');
|
|
|
|
var FilterMode = require('./const');
|
|
|
|
|
2018-01-31 13:54:44 +00:00
|
|
|
/**
|
|
|
|
* @namespace Phaser.Textures
|
|
|
|
*/
|
2018-01-16 22:28:29 +00:00
|
|
|
|
2018-03-29 14:50:48 +00:00
|
|
|
/**
|
|
|
|
* Linear filter type.
|
|
|
|
*
|
|
|
|
* @name Phaser.Textures.LINEAR
|
2019-02-13 12:35:12 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @const
|
|
|
|
* @since 3.0.0
|
2018-03-29 14:50:48 +00:00
|
|
|
*/
|
2018-01-16 22:28:29 +00:00
|
|
|
|
2018-03-29 14:50:48 +00:00
|
|
|
/**
|
|
|
|
* Nearest Neighbor filter type.
|
|
|
|
*
|
|
|
|
* @name Phaser.Textures.NEAREST
|
2019-02-13 12:35:12 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @const
|
|
|
|
* @since 3.0.0
|
2018-03-29 14:50:48 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
var Textures = {
|
2018-02-08 04:01:44 +00:00
|
|
|
|
2019-07-13 09:49:05 +00:00
|
|
|
CanvasTexture: require('./CanvasTexture'),
|
2019-01-17 11:54:41 +00:00
|
|
|
Events: require('./events'),
|
2018-03-29 14:50:48 +00:00
|
|
|
FilterMode: FilterMode,
|
2018-01-16 22:28:29 +00:00
|
|
|
Frame: require('./Frame'),
|
2018-03-29 14:50:48 +00:00
|
|
|
Parsers: require('./parsers'),
|
2018-01-16 22:28:29 +00:00
|
|
|
Texture: require('./Texture'),
|
|
|
|
TextureManager: require('./TextureManager'),
|
2018-03-29 14:50:48 +00:00
|
|
|
TextureSource: require('./TextureSource')
|
2018-01-16 22:28:29 +00:00
|
|
|
|
|
|
|
};
|
2018-03-16 17:35:01 +00:00
|
|
|
|
2018-03-29 14:50:48 +00:00
|
|
|
Textures = Extend(false, Textures, FilterMode);
|
|
|
|
|
2018-03-16 17:35:01 +00:00
|
|
|
module.exports = Textures;
|