phaser/src/textures/index.js

49 lines
986 B
JavaScript
Raw Normal View History

2018-02-12 16:01:20 +00:00
/**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2024 Phaser Studio Inc.
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-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}
* @const
* @since 3.0.0
2018-03-29 14:50:48 +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}
* @const
* @since 3.0.0
2018-03-29 14:50:48 +00:00
*/
var Textures = {
2018-02-08 04:01:44 +00:00
CanvasTexture: require('./CanvasTexture'),
2022-10-07 14:27:50 +00:00
DynamicTexture: require('./DynamicTexture'),
Events: require('./events'),
2018-03-29 14:50:48 +00:00
FilterMode: FilterMode,
Frame: require('./Frame'),
2018-03-29 14:50:48 +00:00
Parsers: require('./parsers'),
Texture: require('./Texture'),
TextureManager: require('./TextureManager'),
2018-03-29 14:50:48 +00:00
TextureSource: require('./TextureSource')
};
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;