image-in-browser
Version:
Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)
73 lines • 1.77 kB
JavaScript
export class Pvr2Info {
get backgroundColor() {
return this._backgroundColor;
}
get numFrames() {
return this._numFrames;
}
get width() {
return this._width;
}
get height() {
return this._height;
}
get mipCount() {
return this._mipCount;
}
get flags() {
return this._flags;
}
get texDataSize() {
return this._texDataSize;
}
get bitsPerPixel() {
return this._bitsPerPixel;
}
get redMask() {
return this._redMask;
}
get greenMask() {
return this._greenMask;
}
get blueMask() {
return this._blueMask;
}
get alphaMask() {
return this._alphaMask;
}
get magic() {
return this._magic;
}
get numTex() {
return this._numTex;
}
constructor(opt) {
this._backgroundColor = undefined;
this._numFrames = 1;
this._width = 0;
this._height = 0;
this._mipCount = 0;
this._flags = 0;
this._texDataSize = 0;
this._bitsPerPixel = 0;
this._redMask = 0;
this._greenMask = 0;
this._blueMask = 0;
this._alphaMask = 0;
this._magic = 0;
this._numTex = 0;
this._width = opt.width;
this._height = opt.height;
this._mipCount = opt.mipCount;
this._flags = opt.flags;
this._texDataSize = opt.texDataSize;
this._bitsPerPixel = opt.bitsPerPixel;
this._redMask = opt.redMask;
this._greenMask = opt.greenMask;
this._blueMask = opt.blueMask;
this._alphaMask = opt.alphaMask;
this._magic = opt.magic;
this._numTex = opt.numTex;
}
}
//# sourceMappingURL=pvr2-info.js.map