pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
29 lines (25 loc) • 729 B
JavaScript
;
var _const = require('./const.js');
;
class GlTexture {
constructor(texture) {
this.target = _const.GL_TARGETS.TEXTURE_2D;
/**
* Bitmask tracking which array layers / sub-targets have been initialized at mip level 0.
* Used by uploaders that need per-layer allocation semantics (e.g. cube faces).
* @internal
*/
this._layerInitMask = 0;
this.texture = texture;
this.width = -1;
this.height = -1;
this.type = _const.GL_TYPES.UNSIGNED_BYTE;
this.internalFormat = _const.GL_FORMATS.RGBA;
this.format = _const.GL_FORMATS.RGBA;
this.samplerType = 0;
}
destroy() {
}
}
exports.GlTexture = GlTexture;
//# sourceMappingURL=GlTexture.js.map