diff --git a/bundles/pixi.js/pixi.js-5.0.4.tgz b/bundles/pixi.js/pixi.js-5.0.4.tgz deleted file mode 100644 index 5f544e1..0000000 --- a/bundles/pixi.js/pixi.js-5.0.4.tgz +++ /dev/null Binary files differ diff --git a/bundles/pixi.js/pixi.js-5.0.4.tgz b/bundles/pixi.js/pixi.js-5.0.4.tgz deleted file mode 100644 index 5f544e1..0000000 --- a/bundles/pixi.js/pixi.js-5.0.4.tgz +++ /dev/null Binary files differ diff --git a/package.json b/package.json index d449095..4c18ed1 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "prerelease": "npm run clean:build && npm test", "postversion": "npm run build:prod", "release": "lerna publish", - "compile:docs": "tsc -p tsconfig.docs.json" + "compile:docs": "tsc -p tsconfig.docs.json", + "local": "npm run dist && npm run types && cd bundles/pixi.js/ && npm pack" }, "pre-commit": [ "lintfix" diff --git a/bundles/pixi.js/pixi.js-5.0.4.tgz b/bundles/pixi.js/pixi.js-5.0.4.tgz deleted file mode 100644 index 5f544e1..0000000 --- a/bundles/pixi.js/pixi.js-5.0.4.tgz +++ /dev/null Binary files differ diff --git a/package.json b/package.json index d449095..4c18ed1 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "prerelease": "npm run clean:build && npm test", "postversion": "npm run build:prod", "release": "lerna publish", - "compile:docs": "tsc -p tsconfig.docs.json" + "compile:docs": "tsc -p tsconfig.docs.json", + "local": "npm run dist && npm run types && cd bundles/pixi.js/ && npm pack" }, "pre-commit": [ "lintfix" diff --git a/packages/constants/src/index.js b/packages/constants/src/index.js index 64a3a0a..f5b0d9d 100644 --- a/packages/constants/src/index.js +++ b/packages/constants/src/index.js @@ -161,6 +161,73 @@ }; /** + * Various GL floating point texture internal formats + * + * @memberof PIXI + * @static + * @name FLOAT_FORMATS + * @enum {number} + * @property {number} RGBA32F = 0x8814 + * @property {number} RGBA32F_ARB = 0x8814 + * @property {number} RGBA_FLOAT32_ATI = 0x8814 + * @property {number} RGB32F = 0x8815 + * @property {number} RGB32F_ARB = 0x8815 + * @property {number} RGB_FLOAT32_ATI = 0x8815 + * @property {number} ALPHA32F_ARB = 0x8816 + * @property {number} ALPHA_FLOAT32_ATI = 0x8816 + * @property {number} INTENSITY32F_ARB = 0x8817 + * @property {number} INTENSITY_FLOAT32_ATI = 0x8817 + * @property {number} LUMINANCE32F_ARB = 0x8818 + * @property {number} LUMINANCE_FLOAT32_ATI = 0x8818 + * @property {number} LUMINANCE_ALPHA32F_ARB = 0x8819 + * @property {number} LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819 + * @property {number} RGBA16F = 0x881A + * @property {number} RGBA16F_ARB = 0x881A + * @property {number} RGBA_FLOAT16_ATI = 0x881A + * @property {number} RGB16F = 0x881B + * @property {number} RGB16F_ARB = 0x881B + * @property {number} RGB_FLOAT16_ATI = 0x881B + * @property {number} ALPHA16F_ARB = 0x881C + * @property {number} ALPHA_FLOAT16_ATI = 0x881C + * @property {number} INTENSITY16F_ARB = 0x881D + * @property {number} INTENSITY_FLOAT16_ATI = 0x881D + * @property {number} LUMINANCE16F_ARB = 0x881E + * @property {number} LUMINANCE_FLOAT16_ATI = 0x881E + * @property {number} LUMINANCE_ALPHA16F_ARB = 0x881F + * @property {number} LUMINANCE_ALPHA_FLOAT16_ATI = 0x881F + */ +export const FLOAT_FORMATS = { + RGBA32F : 0x8814, + RGBA32F_ARB : 0x8814, + RGBA_FLOAT32_ATI : 0x8814, + RGB32F : 0x8815, + RGB32F_ARB : 0x8815, + RGB_FLOAT32_ATI : 0x8815, + ALPHA32F_ARB : 0x8816, + ALPHA_FLOAT32_ATI : 0x8816, + INTENSITY32F_ARB : 0x8817, + INTENSITY_FLOAT32_ATI : 0x8817, + LUMINANCE32F_ARB : 0x8818, + LUMINANCE_FLOAT32_ATI : 0x8818, + LUMINANCE_ALPHA32F_ARB : 0x8819, + LUMINANCE_ALPHA_FLOAT32_ATI : 0x8819, + RGBA16F : 0x881A, + RGBA16F_ARB : 0x881A, + RGBA_FLOAT16_ATI : 0x881A, + RGB16F : 0x881B, + RGB16F_ARB : 0x881B, + RGB_FLOAT16_ATI : 0x881B, + ALPHA16F_ARB : 0x881C, + ALPHA_FLOAT16_ATI : 0x881C, + INTENSITY16F_ARB : 0x881D, + INTENSITY_FLOAT16_ATI : 0x881D, + LUMINANCE16F_ARB : 0x881E, + LUMINANCE_FLOAT16_ATI : 0x881E, + LUMINANCE_ALPHA16F_ARB : 0x881F, + LUMINANCE_ALPHA_FLOAT16_ATI : 0x881F, +}; + +/** * Various GL target types. * * @memberof PIXI diff --git a/bundles/pixi.js/pixi.js-5.0.4.tgz b/bundles/pixi.js/pixi.js-5.0.4.tgz deleted file mode 100644 index 5f544e1..0000000 --- a/bundles/pixi.js/pixi.js-5.0.4.tgz +++ /dev/null Binary files differ diff --git a/package.json b/package.json index d449095..4c18ed1 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "prerelease": "npm run clean:build && npm test", "postversion": "npm run build:prod", "release": "lerna publish", - "compile:docs": "tsc -p tsconfig.docs.json" + "compile:docs": "tsc -p tsconfig.docs.json", + "local": "npm run dist && npm run types && cd bundles/pixi.js/ && npm pack" }, "pre-commit": [ "lintfix" diff --git a/packages/constants/src/index.js b/packages/constants/src/index.js index 64a3a0a..f5b0d9d 100644 --- a/packages/constants/src/index.js +++ b/packages/constants/src/index.js @@ -161,6 +161,73 @@ }; /** + * Various GL floating point texture internal formats + * + * @memberof PIXI + * @static + * @name FLOAT_FORMATS + * @enum {number} + * @property {number} RGBA32F = 0x8814 + * @property {number} RGBA32F_ARB = 0x8814 + * @property {number} RGBA_FLOAT32_ATI = 0x8814 + * @property {number} RGB32F = 0x8815 + * @property {number} RGB32F_ARB = 0x8815 + * @property {number} RGB_FLOAT32_ATI = 0x8815 + * @property {number} ALPHA32F_ARB = 0x8816 + * @property {number} ALPHA_FLOAT32_ATI = 0x8816 + * @property {number} INTENSITY32F_ARB = 0x8817 + * @property {number} INTENSITY_FLOAT32_ATI = 0x8817 + * @property {number} LUMINANCE32F_ARB = 0x8818 + * @property {number} LUMINANCE_FLOAT32_ATI = 0x8818 + * @property {number} LUMINANCE_ALPHA32F_ARB = 0x8819 + * @property {number} LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819 + * @property {number} RGBA16F = 0x881A + * @property {number} RGBA16F_ARB = 0x881A + * @property {number} RGBA_FLOAT16_ATI = 0x881A + * @property {number} RGB16F = 0x881B + * @property {number} RGB16F_ARB = 0x881B + * @property {number} RGB_FLOAT16_ATI = 0x881B + * @property {number} ALPHA16F_ARB = 0x881C + * @property {number} ALPHA_FLOAT16_ATI = 0x881C + * @property {number} INTENSITY16F_ARB = 0x881D + * @property {number} INTENSITY_FLOAT16_ATI = 0x881D + * @property {number} LUMINANCE16F_ARB = 0x881E + * @property {number} LUMINANCE_FLOAT16_ATI = 0x881E + * @property {number} LUMINANCE_ALPHA16F_ARB = 0x881F + * @property {number} LUMINANCE_ALPHA_FLOAT16_ATI = 0x881F + */ +export const FLOAT_FORMATS = { + RGBA32F : 0x8814, + RGBA32F_ARB : 0x8814, + RGBA_FLOAT32_ATI : 0x8814, + RGB32F : 0x8815, + RGB32F_ARB : 0x8815, + RGB_FLOAT32_ATI : 0x8815, + ALPHA32F_ARB : 0x8816, + ALPHA_FLOAT32_ATI : 0x8816, + INTENSITY32F_ARB : 0x8817, + INTENSITY_FLOAT32_ATI : 0x8817, + LUMINANCE32F_ARB : 0x8818, + LUMINANCE_FLOAT32_ATI : 0x8818, + LUMINANCE_ALPHA32F_ARB : 0x8819, + LUMINANCE_ALPHA_FLOAT32_ATI : 0x8819, + RGBA16F : 0x881A, + RGBA16F_ARB : 0x881A, + RGBA_FLOAT16_ATI : 0x881A, + RGB16F : 0x881B, + RGB16F_ARB : 0x881B, + RGB_FLOAT16_ATI : 0x881B, + ALPHA16F_ARB : 0x881C, + ALPHA_FLOAT16_ATI : 0x881C, + INTENSITY16F_ARB : 0x881D, + INTENSITY_FLOAT16_ATI : 0x881D, + LUMINANCE16F_ARB : 0x881E, + LUMINANCE_FLOAT16_ATI : 0x881E, + LUMINANCE_ALPHA16F_ARB : 0x881F, + LUMINANCE_ALPHA_FLOAT16_ATI : 0x881F, +}; + +/** * Various GL target types. * * @memberof PIXI diff --git a/packages/core/src/Renderer.js b/packages/core/src/Renderer.js index 78cb8e4..de4c2b4 100644 --- a/packages/core/src/Renderer.js +++ b/packages/core/src/Renderer.js @@ -73,6 +73,7 @@ * @param {string} [options.powerPreference] - Parameter passed to WebGL context, set to "high-performance" * for devices with dual graphics card. * @param {object} [options.context] If WebGL context already exists, all parameters must be taken from it. + * @param {FLOAT_FORMATS} [options.floatTexInternalFormat] The internal format to use for floating point textures (usually FLOAT_FORMATS.RGBA32F or FLOAT_FORMATS.RGBA16F) */ constructor(options = {}) { @@ -260,6 +261,8 @@ sayHello(this.context.webGLVersion === 2 ? 'WebGL 2' : 'WebGL 1'); this.resize(this.options.width, this.options.height); + + this.floatTexInternalFormat = options.floatTexInternalFormat || FLOAT_FORMATS.RGBA32F; } /** diff --git a/bundles/pixi.js/pixi.js-5.0.4.tgz b/bundles/pixi.js/pixi.js-5.0.4.tgz deleted file mode 100644 index 5f544e1..0000000 --- a/bundles/pixi.js/pixi.js-5.0.4.tgz +++ /dev/null Binary files differ diff --git a/package.json b/package.json index d449095..4c18ed1 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "prerelease": "npm run clean:build && npm test", "postversion": "npm run build:prod", "release": "lerna publish", - "compile:docs": "tsc -p tsconfig.docs.json" + "compile:docs": "tsc -p tsconfig.docs.json", + "local": "npm run dist && npm run types && cd bundles/pixi.js/ && npm pack" }, "pre-commit": [ "lintfix" diff --git a/packages/constants/src/index.js b/packages/constants/src/index.js index 64a3a0a..f5b0d9d 100644 --- a/packages/constants/src/index.js +++ b/packages/constants/src/index.js @@ -161,6 +161,73 @@ }; /** + * Various GL floating point texture internal formats + * + * @memberof PIXI + * @static + * @name FLOAT_FORMATS + * @enum {number} + * @property {number} RGBA32F = 0x8814 + * @property {number} RGBA32F_ARB = 0x8814 + * @property {number} RGBA_FLOAT32_ATI = 0x8814 + * @property {number} RGB32F = 0x8815 + * @property {number} RGB32F_ARB = 0x8815 + * @property {number} RGB_FLOAT32_ATI = 0x8815 + * @property {number} ALPHA32F_ARB = 0x8816 + * @property {number} ALPHA_FLOAT32_ATI = 0x8816 + * @property {number} INTENSITY32F_ARB = 0x8817 + * @property {number} INTENSITY_FLOAT32_ATI = 0x8817 + * @property {number} LUMINANCE32F_ARB = 0x8818 + * @property {number} LUMINANCE_FLOAT32_ATI = 0x8818 + * @property {number} LUMINANCE_ALPHA32F_ARB = 0x8819 + * @property {number} LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819 + * @property {number} RGBA16F = 0x881A + * @property {number} RGBA16F_ARB = 0x881A + * @property {number} RGBA_FLOAT16_ATI = 0x881A + * @property {number} RGB16F = 0x881B + * @property {number} RGB16F_ARB = 0x881B + * @property {number} RGB_FLOAT16_ATI = 0x881B + * @property {number} ALPHA16F_ARB = 0x881C + * @property {number} ALPHA_FLOAT16_ATI = 0x881C + * @property {number} INTENSITY16F_ARB = 0x881D + * @property {number} INTENSITY_FLOAT16_ATI = 0x881D + * @property {number} LUMINANCE16F_ARB = 0x881E + * @property {number} LUMINANCE_FLOAT16_ATI = 0x881E + * @property {number} LUMINANCE_ALPHA16F_ARB = 0x881F + * @property {number} LUMINANCE_ALPHA_FLOAT16_ATI = 0x881F + */ +export const FLOAT_FORMATS = { + RGBA32F : 0x8814, + RGBA32F_ARB : 0x8814, + RGBA_FLOAT32_ATI : 0x8814, + RGB32F : 0x8815, + RGB32F_ARB : 0x8815, + RGB_FLOAT32_ATI : 0x8815, + ALPHA32F_ARB : 0x8816, + ALPHA_FLOAT32_ATI : 0x8816, + INTENSITY32F_ARB : 0x8817, + INTENSITY_FLOAT32_ATI : 0x8817, + LUMINANCE32F_ARB : 0x8818, + LUMINANCE_FLOAT32_ATI : 0x8818, + LUMINANCE_ALPHA32F_ARB : 0x8819, + LUMINANCE_ALPHA_FLOAT32_ATI : 0x8819, + RGBA16F : 0x881A, + RGBA16F_ARB : 0x881A, + RGBA_FLOAT16_ATI : 0x881A, + RGB16F : 0x881B, + RGB16F_ARB : 0x881B, + RGB_FLOAT16_ATI : 0x881B, + ALPHA16F_ARB : 0x881C, + ALPHA_FLOAT16_ATI : 0x881C, + INTENSITY16F_ARB : 0x881D, + INTENSITY_FLOAT16_ATI : 0x881D, + LUMINANCE16F_ARB : 0x881E, + LUMINANCE_FLOAT16_ATI : 0x881E, + LUMINANCE_ALPHA16F_ARB : 0x881F, + LUMINANCE_ALPHA_FLOAT16_ATI : 0x881F, +}; + +/** * Various GL target types. * * @memberof PIXI diff --git a/packages/core/src/Renderer.js b/packages/core/src/Renderer.js index 78cb8e4..de4c2b4 100644 --- a/packages/core/src/Renderer.js +++ b/packages/core/src/Renderer.js @@ -73,6 +73,7 @@ * @param {string} [options.powerPreference] - Parameter passed to WebGL context, set to "high-performance" * for devices with dual graphics card. * @param {object} [options.context] If WebGL context already exists, all parameters must be taken from it. + * @param {FLOAT_FORMATS} [options.floatTexInternalFormat] The internal format to use for floating point textures (usually FLOAT_FORMATS.RGBA32F or FLOAT_FORMATS.RGBA16F) */ constructor(options = {}) { @@ -260,6 +261,8 @@ sayHello(this.context.webGLVersion === 2 ? 'WebGL 2' : 'WebGL 1'); this.resize(this.options.width, this.options.height); + + this.floatTexInternalFormat = options.floatTexInternalFormat || FLOAT_FORMATS.RGBA32F; } /** diff --git a/packages/core/src/renderTexture/BaseRenderTexture.js b/packages/core/src/renderTexture/BaseRenderTexture.js index 7207750..22204ae 100644 --- a/packages/core/src/renderTexture/BaseRenderTexture.js +++ b/packages/core/src/renderTexture/BaseRenderTexture.js @@ -44,11 +44,18 @@ export class BaseRenderTexture extends BaseTexture { /** - * @param {object} [options] + * @param {Object} [options] - Collection of options * @param {number} [options.width=100] - The width of the base render texture. * @param {number} [options.height=100] - The height of the base render texture. * @param {PIXI.SCALE_MODES} [options.scaleMode] - See {@link PIXI.SCALE_MODES} for possible values. * @param {number} [options.resolution=1] - The resolution / device pixel ratio of the texture being generated. + * @param {PIXI.MIPMAP_MODES} [options.mipmap=PIXI.settings.MIPMAP_TEXTURES] - If mipmapping is enabled for texture + * @param {PIXI.WRAP_MODES} [options.wrapMode=PIXI.settings.WRAP_MODE] - Wrap mode for textures + * @param {PIXI.FORMATS} [options.format=PIXI.FORMATS.RGBA] - GL format type + * @param {PIXI.TYPES} [options.type=PIXI.TYPES.UNSIGNED_BYTE] - GL data type + * @param {PIXI.TARGETS} [options.target=PIXI.TARGETS.TEXTURE_2D] - GL texture target + * @param {boolean} [options.premultiplyAlpha=true] - Pre multiply the image alpha + * @param {object} [options.resourceOptions] - Optional resource options, */ constructor(options) { diff --git a/bundles/pixi.js/pixi.js-5.0.4.tgz b/bundles/pixi.js/pixi.js-5.0.4.tgz deleted file mode 100644 index 5f544e1..0000000 --- a/bundles/pixi.js/pixi.js-5.0.4.tgz +++ /dev/null Binary files differ diff --git a/package.json b/package.json index d449095..4c18ed1 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "prerelease": "npm run clean:build && npm test", "postversion": "npm run build:prod", "release": "lerna publish", - "compile:docs": "tsc -p tsconfig.docs.json" + "compile:docs": "tsc -p tsconfig.docs.json", + "local": "npm run dist && npm run types && cd bundles/pixi.js/ && npm pack" }, "pre-commit": [ "lintfix" diff --git a/packages/constants/src/index.js b/packages/constants/src/index.js index 64a3a0a..f5b0d9d 100644 --- a/packages/constants/src/index.js +++ b/packages/constants/src/index.js @@ -161,6 +161,73 @@ }; /** + * Various GL floating point texture internal formats + * + * @memberof PIXI + * @static + * @name FLOAT_FORMATS + * @enum {number} + * @property {number} RGBA32F = 0x8814 + * @property {number} RGBA32F_ARB = 0x8814 + * @property {number} RGBA_FLOAT32_ATI = 0x8814 + * @property {number} RGB32F = 0x8815 + * @property {number} RGB32F_ARB = 0x8815 + * @property {number} RGB_FLOAT32_ATI = 0x8815 + * @property {number} ALPHA32F_ARB = 0x8816 + * @property {number} ALPHA_FLOAT32_ATI = 0x8816 + * @property {number} INTENSITY32F_ARB = 0x8817 + * @property {number} INTENSITY_FLOAT32_ATI = 0x8817 + * @property {number} LUMINANCE32F_ARB = 0x8818 + * @property {number} LUMINANCE_FLOAT32_ATI = 0x8818 + * @property {number} LUMINANCE_ALPHA32F_ARB = 0x8819 + * @property {number} LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819 + * @property {number} RGBA16F = 0x881A + * @property {number} RGBA16F_ARB = 0x881A + * @property {number} RGBA_FLOAT16_ATI = 0x881A + * @property {number} RGB16F = 0x881B + * @property {number} RGB16F_ARB = 0x881B + * @property {number} RGB_FLOAT16_ATI = 0x881B + * @property {number} ALPHA16F_ARB = 0x881C + * @property {number} ALPHA_FLOAT16_ATI = 0x881C + * @property {number} INTENSITY16F_ARB = 0x881D + * @property {number} INTENSITY_FLOAT16_ATI = 0x881D + * @property {number} LUMINANCE16F_ARB = 0x881E + * @property {number} LUMINANCE_FLOAT16_ATI = 0x881E + * @property {number} LUMINANCE_ALPHA16F_ARB = 0x881F + * @property {number} LUMINANCE_ALPHA_FLOAT16_ATI = 0x881F + */ +export const FLOAT_FORMATS = { + RGBA32F : 0x8814, + RGBA32F_ARB : 0x8814, + RGBA_FLOAT32_ATI : 0x8814, + RGB32F : 0x8815, + RGB32F_ARB : 0x8815, + RGB_FLOAT32_ATI : 0x8815, + ALPHA32F_ARB : 0x8816, + ALPHA_FLOAT32_ATI : 0x8816, + INTENSITY32F_ARB : 0x8817, + INTENSITY_FLOAT32_ATI : 0x8817, + LUMINANCE32F_ARB : 0x8818, + LUMINANCE_FLOAT32_ATI : 0x8818, + LUMINANCE_ALPHA32F_ARB : 0x8819, + LUMINANCE_ALPHA_FLOAT32_ATI : 0x8819, + RGBA16F : 0x881A, + RGBA16F_ARB : 0x881A, + RGBA_FLOAT16_ATI : 0x881A, + RGB16F : 0x881B, + RGB16F_ARB : 0x881B, + RGB_FLOAT16_ATI : 0x881B, + ALPHA16F_ARB : 0x881C, + ALPHA_FLOAT16_ATI : 0x881C, + INTENSITY16F_ARB : 0x881D, + INTENSITY_FLOAT16_ATI : 0x881D, + LUMINANCE16F_ARB : 0x881E, + LUMINANCE_FLOAT16_ATI : 0x881E, + LUMINANCE_ALPHA16F_ARB : 0x881F, + LUMINANCE_ALPHA_FLOAT16_ATI : 0x881F, +}; + +/** * Various GL target types. * * @memberof PIXI diff --git a/packages/core/src/Renderer.js b/packages/core/src/Renderer.js index 78cb8e4..de4c2b4 100644 --- a/packages/core/src/Renderer.js +++ b/packages/core/src/Renderer.js @@ -73,6 +73,7 @@ * @param {string} [options.powerPreference] - Parameter passed to WebGL context, set to "high-performance" * for devices with dual graphics card. * @param {object} [options.context] If WebGL context already exists, all parameters must be taken from it. + * @param {FLOAT_FORMATS} [options.floatTexInternalFormat] The internal format to use for floating point textures (usually FLOAT_FORMATS.RGBA32F or FLOAT_FORMATS.RGBA16F) */ constructor(options = {}) { @@ -260,6 +261,8 @@ sayHello(this.context.webGLVersion === 2 ? 'WebGL 2' : 'WebGL 1'); this.resize(this.options.width, this.options.height); + + this.floatTexInternalFormat = options.floatTexInternalFormat || FLOAT_FORMATS.RGBA32F; } /** diff --git a/packages/core/src/renderTexture/BaseRenderTexture.js b/packages/core/src/renderTexture/BaseRenderTexture.js index 7207750..22204ae 100644 --- a/packages/core/src/renderTexture/BaseRenderTexture.js +++ b/packages/core/src/renderTexture/BaseRenderTexture.js @@ -44,11 +44,18 @@ export class BaseRenderTexture extends BaseTexture { /** - * @param {object} [options] + * @param {Object} [options] - Collection of options * @param {number} [options.width=100] - The width of the base render texture. * @param {number} [options.height=100] - The height of the base render texture. * @param {PIXI.SCALE_MODES} [options.scaleMode] - See {@link PIXI.SCALE_MODES} for possible values. * @param {number} [options.resolution=1] - The resolution / device pixel ratio of the texture being generated. + * @param {PIXI.MIPMAP_MODES} [options.mipmap=PIXI.settings.MIPMAP_TEXTURES] - If mipmapping is enabled for texture + * @param {PIXI.WRAP_MODES} [options.wrapMode=PIXI.settings.WRAP_MODE] - Wrap mode for textures + * @param {PIXI.FORMATS} [options.format=PIXI.FORMATS.RGBA] - GL format type + * @param {PIXI.TYPES} [options.type=PIXI.TYPES.UNSIGNED_BYTE] - GL data type + * @param {PIXI.TARGETS} [options.target=PIXI.TARGETS.TEXTURE_2D] - GL texture target + * @param {boolean} [options.premultiplyAlpha=true] - Pre multiply the image alpha + * @param {object} [options.resourceOptions] - Optional resource options, */ constructor(options) { diff --git a/packages/core/src/textures/resources/ArrayResource.js b/packages/core/src/textures/resources/ArrayResource.js index c5fddbf..e96f6c4 100644 --- a/packages/core/src/textures/resources/ArrayResource.js +++ b/packages/core/src/textures/resources/ArrayResource.js @@ -123,7 +123,7 @@ /** * Set the parent base texture - * @member {PIXI.BaseTexture} + * @param {PIXI.BaseTexture} baseTexture * @override */ bind(baseTexture) @@ -140,7 +140,7 @@ /** * Unset the parent base texture - * @member {PIXI.BaseTexture} + * @param {PIXI.BaseTexture} baseTexture * @override */ unbind(baseTexture)