2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
2023-01-02 17:36:27 +00:00
|
|
|
* @copyright 2013-2023 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.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2018-03-29 14:50:48 +00:00
|
|
|
* @name Phaser.Textures.LINEAR
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2019-02-13 12:35:12 +00:00
|
|
|
* @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.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2018-03-29 14:50:48 +00:00
|
|
|
* @name Phaser.Textures.NEAREST
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2019-02-13 12:35:12 +00:00
|
|
|
* @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'),
|
2022-10-07 14:27:50 +00:00
|
|
|
DynamicTexture: require('./DynamicTexture'),
|
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;
|