phaser/src/textures/index.js

48 lines
941 B
JavaScript
Raw Normal View History

2018-02-12 16:01:20 +00:00
/**
* @author Richard Davey <rich@photonstorm.com>
2019-01-15 16:20:22 +00:00
* @copyright 2019 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-03-29 14:50:48 +00:00
/**
* Linear filter type.
*
* @name Phaser.Textures.LINEAR
* @type {integer}
* @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.
*
* @name Phaser.Textures.NEAREST
* @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
CanvasTexture: require('./CanvasTexture'),
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;