Home

class: BlendModeManager


Extends:

WebGLManager → BlendModeManager

Methods summary


Public methods
public setBlendMode(blendMode: number): boolean
public setBlendMode(blendMode: number): boolean
public onContextChange(): void
public destroy(): void

Properties


Name Type Attribute Description
currentBlendMode number public
currentBlendMode number public
renderer PIXI.WebGLRenderer public

The renderer this manager works for.

Methods


setBlendMode(blendMode: number): boolean

Sets-up the given blendMode from WebGL's point of view.

Params:

Name Type Attribute Description
blendMode

the blendMode, should be a Pixi const, such as
PIXI.BLEND_MODES.ADD. See {@link PIXI.BLEND_MODES} for possible values.

Returns:

boolean


setBlendMode(blendMode: number): boolean

Sets-up the given blendMode from WebGL's point of view.

Params:

Name Type Attribute Description
blendMode

the blendMode, should be a Pixi const, such as
PIXI.BLEND_MODES.ADD. See {@link PIXI.BLEND_MODES} for possible values.

Returns:

boolean


onContextChange(): void

Generic method called when there is a WebGL context change.

Returns:

void


destroy(): void

Generic destroy methods to be overridden by the subclass

Returns:

void


  {
    "comment": "/**\n * @class\n * @memberof PIXI\n * @extends PIXI.WebGLManager\n */",
    "meta": {
        "range": [
            144,
            1126
        ],
        "filename": "BlendModeManager.js",
        "lineno": 10,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers",
        "code": {
            "id": "astnode100024064",
            "name": "BlendModeManager",
            "type": "ClassDeclaration",
            "paramnames": [
                "renderer"
            ]
        }
    },
    "kind": "class",
    "memberof": "PIXI",
    "augments": [
        "PIXI.WebGLManager"
    ],
    "name": "BlendModeManager",
    "longname": "PIXI.BlendModeManager",
    "scope": "static",
    "params": [
        {
            "type": {
                "names": [
                    "PIXI.WebGLRenderer"
                ]
            },
            "description": "

The renderer this manager works for.

", "name": "renderer" } ], "___id": "T000002R002286", "___s": true, "$methods": [ { "comment": "/**\n * Sets-up the given blendMode from WebGL's point of view.\n *\n * @param {number} blendMode - the blendMode, should be a Pixi const, such as\n * `PIXI.BLEND_MODES.ADD`. See {@link PIXI.BLEND_MODES} for possible values.\n * @return {boolean} Returns if the blend mode was changed.\n */", "meta": { "range": [ 802, 1124 ], "filename": "BlendModeManager.js", "lineno": 32, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": { "id": "astnode100024083", "name": "BlendModeManager#setBlendMode", "type": "MethodDefinition", "paramnames": [ "blendMode" ] }, "vars": { "": null } }, "description": "

Sets-up the given blendMode from WebGL's point of view.

", "params": [ { "type": { "names": [ "number" ] }, "description": "

the blendMode, should be a Pixi const, such as
PIXI.BLEND_MODES.ADD. See {@link PIXI.BLEND_MODES} for possible values.

", "name": "blendMode" } ], "returns": [ { "type": { "names": [ "boolean" ] }, "description": "

Returns if the blend mode was changed.

" } ], "name": "setBlendMode", "longname": "PIXI.BlendModeManager#setBlendMode", "kind": "function", "memberof": "PIXI.BlendModeManager", "scope": "instance", "___id": "T000002R002290", "___s": true, "skip": true, "slug": "PIXI.BlendModeManagersetBlendMode", "filepath": "core\\renderers\\webgl\\managers\\BlendModeManager.js" }, { "comment": "/**\n * Sets-up the given blendMode from WebGL's point of view.\n *\n * @param {number} blendMode - the blendMode, should be a Pixi const, such as\n * `PIXI.BLEND_MODES.ADD`. See {@link PIXI.BLEND_MODES} for possible values.\n * @return {boolean} Returns if the blend mode was changed.\n */", "meta": { "range": [ 802, 1124 ], "filename": "BlendModeManager.js", "lineno": 32, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": { "id": "astnode100098762", "name": "BlendModeManager#setBlendMode", "type": "MethodDefinition", "paramnames": [ "blendMode" ] }, "vars": { "": null } }, "description": "

Sets-up the given blendMode from WebGL's point of view.

", "params": [ { "type": { "names": [ "number" ] }, "description": "

the blendMode, should be a Pixi const, such as
PIXI.BLEND_MODES.ADD. See {@link PIXI.BLEND_MODES} for possible values.

", "name": "blendMode" } ], "returns": [ { "type": { "names": [ "boolean" ] }, "description": "

Returns if the blend mode was changed.

" } ], "name": "setBlendMode", "longname": "PIXI.BlendModeManager#setBlendMode", "kind": "function", "memberof": "PIXI.BlendModeManager", "scope": "instance", "___id": "T000002R009224", "___s": true, "skip": true, "slug": "PIXI.BlendModeManagersetBlendMode", "filepath": "core\\renderers\\webgl\\managers\\BlendModeManager.js" }, { "comment": "/**\n * Generic method called when there is a WebGL context change.\n *\n */", "meta": { "range": [ 569, 629 ], "filename": "WebGLManager.js", "lineno": 28, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": { "id": "astnode100026924", "name": "WebGLManager#onContextChange", "type": "MethodDefinition", "paramnames": [] }, "vars": { "": null } }, "description": "

Generic method called when there is a WebGL context change.

", "name": "onContextChange", "longname": "PIXI.BlendModeManager#onContextChange", "kind": "function", "memberof": "PIXI.BlendModeManager", "scope": "instance", "params": [], "inherits": "PIXI.WebGLManager#onContextChange", "inherited": true, "overrides": "PIXI.WebGLManager#onContextChange", "___id": "T000002R013991", "___s": true, "skip": true, "slug": "PIXI.BlendModeManageronContextChange", "filepath": "core\\renderers\\webgl\\managers\\WebGLManager.js" }, { "comment": "/**\n * Generic destroy methods to be overridden by the subclass\n *\n */", "meta": { "range": [ 722, 840 ], "filename": "WebGLManager.js", "lineno": 37, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": { "id": "astnode100026928", "name": "WebGLManager#destroy", "type": "MethodDefinition", "paramnames": [] }, "vars": { "": null } }, "description": "

Generic destroy methods to be overridden by the subclass

", "name": "destroy", "longname": "PIXI.BlendModeManager#destroy", "kind": "function", "memberof": "PIXI.BlendModeManager", "scope": "instance", "params": [], "inherits": "PIXI.WebGLManager#destroy", "inherited": true, "overrides": "PIXI.WebGLManager#destroy", "___id": "T000002R013992", "___s": true, "skip": true, "slug": "PIXI.BlendModeManagerdestroy", "filepath": "core\\renderers\\webgl\\managers\\WebGLManager.js" } ], "$attributes": [ { "comment": "/**\n * @member {number} PIXI.BlendModeManager#currentBlendMode\n */", "meta": { "range": [ 355, 437 ], "filename": "BlendModeManager.js", "lineno": 19, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": {} }, "kind": "member", "name": "currentBlendMode", "type": { "names": [ "number" ] }, "memberof": "PIXI.BlendModeManager", "longname": "PIXI.BlendModeManager#currentBlendMode", "scope": "instance", "___id": "T000002R002288", "___s": true, "skip": true, "slug": "PIXI.BlendModeManagercurrentBlendMode", "filepath": "core\\renderers\\webgl\\managers\\BlendModeManager.js" }, { "comment": "/**\n * @member {number} PIXI.BlendModeManager#currentBlendMode\n */", "meta": { "range": [ 355, 437 ], "filename": "BlendModeManager.js", "lineno": 19, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": {} }, "kind": "member", "name": "currentBlendMode", "type": { "names": [ "number" ] }, "memberof": "PIXI.BlendModeManager", "longname": "PIXI.BlendModeManager#currentBlendMode", "scope": "instance", "___id": "T000002R009222", "___s": true, "skip": true, "slug": "PIXI.BlendModeManagercurrentBlendMode", "filepath": "core\\renderers\\webgl\\managers\\BlendModeManager.js" }, { "comment": "/**\n * The renderer this manager works for.\n *\n * @member {PIXI.WebGLRenderer} PIXI.WebGLManager#renderer\n */", "meta": { "range": [ 226, 367 ], "filename": "WebGLManager.js", "lineno": 14, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": {} }, "description": "

The renderer this manager works for.

", "kind": "member", "name": "renderer", "type": { "names": [ "PIXI.WebGLRenderer" ] }, "memberof": "PIXI.BlendModeManager", "longname": "PIXI.BlendModeManager#renderer", "scope": "instance", "inherits": "PIXI.WebGLManager#renderer", "inherited": true, "overrides": "PIXI.WebGLManager#renderer", "___id": "T000002R013990", "___s": true, "skip": true, "slug": "PIXI.BlendModeManagerrenderer", "filepath": "core\\renderers\\webgl\\managers\\WebGLManager.js" } ], "$staticmethods": [], "$staticproperties": [], "$augments": [ { "comment": "/**\n * @class\n * @memberof PIXI\n */", "meta": { "range": [ 66, 842 ], "filename": "WebGLManager.js", "lineno": 7, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": { "id": "astnode100026898", "name": "WebGLManager", "type": "ClassDeclaration", "paramnames": [ "renderer" ] } }, "kind": "class", "memberof": "PIXI", "name": "WebGLManager", "longname": "PIXI.WebGLManager", "scope": "static", "params": [ { "type": { "names": [ "PIXI.WebGLRenderer" ] }, "description": "

The renderer this manager works for.

", "name": "renderer" } ], "___id": "T000002R002488", "___s": true, "$methods": [ { "comment": "/**\n * Generic method called when there is a WebGL context change.\n *\n */", "meta": { "range": [ 569, 629 ], "filename": "WebGLManager.js", "lineno": 28, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": { "id": "astnode100026924", "name": "WebGLManager#onContextChange", "type": "MethodDefinition", "paramnames": [] }, "vars": { "": null } }, "description": "

Generic method called when there is a WebGL context change.

", "name": "onContextChange", "longname": "PIXI.WebGLManager#onContextChange", "kind": "function", "memberof": "PIXI.WebGLManager", "scope": "instance", "params": [], "___id": "T000002R002492", "___s": true, "skip": true, "slug": "PIXI.WebGLManageronContextChange", "filepath": "core\\renderers\\webgl\\managers\\WebGLManager.js" }, { "comment": "/**\n * Generic destroy methods to be overridden by the subclass\n *\n */", "meta": { "range": [ 722, 840 ], "filename": "WebGLManager.js", "lineno": 37, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": { "id": "astnode100026928", "name": "WebGLManager#destroy", "type": "MethodDefinition", "paramnames": [] }, "vars": { "": null } }, "description": "

Generic destroy methods to be overridden by the subclass

", "name": "destroy", "longname": "PIXI.WebGLManager#destroy", "kind": "function", "memberof": "PIXI.WebGLManager", "scope": "instance", "params": [], "___id": "T000002R002493", "___s": true, "skip": true, "slug": "PIXI.WebGLManagerdestroy", "filepath": "core\\renderers\\webgl\\managers\\WebGLManager.js" }, { "comment": "/**\n * Generic method called when there is a WebGL context change.\n *\n */", "meta": { "range": [ 569, 629 ], "filename": "WebGLManager.js", "lineno": 28, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": { "id": "astnode100101603", "name": "WebGLManager#onContextChange", "type": "MethodDefinition", "paramnames": [] }, "vars": { "": null } }, "description": "

Generic method called when there is a WebGL context change.

", "name": "onContextChange", "longname": "PIXI.WebGLManager#onContextChange", "kind": "function", "memberof": "PIXI.WebGLManager", "scope": "instance", "params": [], "___id": "T000002R009426", "___s": true, "skip": true, "slug": "PIXI.WebGLManageronContextChange", "filepath": "core\\renderers\\webgl\\managers\\WebGLManager.js" }, { "comment": "/**\n * Generic destroy methods to be overridden by the subclass\n *\n */", "meta": { "range": [ 722, 840 ], "filename": "WebGLManager.js", "lineno": 37, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": { "id": "astnode100101607", "name": "WebGLManager#destroy", "type": "MethodDefinition", "paramnames": [] }, "vars": { "": null } }, "description": "

Generic destroy methods to be overridden by the subclass

", "name": "destroy", "longname": "PIXI.WebGLManager#destroy", "kind": "function", "memberof": "PIXI.WebGLManager", "scope": "instance", "params": [], "___id": "T000002R009427", "___s": true, "skip": true, "slug": "PIXI.WebGLManagerdestroy", "filepath": "core\\renderers\\webgl\\managers\\WebGLManager.js" } ], "$attributes": [ { "comment": "/**\n * The renderer this manager works for.\n *\n * @member {PIXI.WebGLRenderer} PIXI.WebGLManager#renderer\n */", "meta": { "range": [ 226, 367 ], "filename": "WebGLManager.js", "lineno": 14, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": {} }, "description": "

The renderer this manager works for.

", "kind": "member", "name": "renderer", "type": { "names": [ "PIXI.WebGLRenderer" ] }, "memberof": "PIXI.WebGLManager", "longname": "PIXI.WebGLManager#renderer", "scope": "instance", "___id": "T000002R002490", "___s": true, "skip": true, "slug": "PIXI.WebGLManagerrenderer", "filepath": "core\\renderers\\webgl\\managers\\WebGLManager.js" }, { "comment": "/**\n * The renderer this manager works for.\n *\n * @member {PIXI.WebGLRenderer} PIXI.WebGLManager#renderer\n */", "meta": { "range": [ 226, 367 ], "filename": "WebGLManager.js", "lineno": 14, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\renderers\\webgl\\managers", "code": {} }, "description": "

The renderer this manager works for.

", "kind": "member", "name": "renderer", "type": { "names": [ "PIXI.WebGLRenderer" ] }, "memberof": "PIXI.WebGLManager", "longname": "PIXI.WebGLManager#renderer", "scope": "instance", "___id": "T000002R009424", "___s": true, "skip": true, "slug": "PIXI.WebGLManagerrenderer", "filepath": "core\\renderers\\webgl\\managers\\WebGLManager.js" } ], "$staticmethods": [], "$staticproperties": [], "$augments": [], "$augmentedBy": [ { "name": "BlendModeManager" }, { "name": "FilterManager" }, { "name": "MaskManager" }, { "name": "StencilManager" }, { "name": "ObjectRenderer" }, { "name": "BlendModeManager" }, { "name": "FilterManager" }, { "name": "MaskManager" }, { "name": "StencilManager" }, { "name": "ObjectRenderer" } ], "filepath": "core\\renderers\\webgl\\managers\\WebGLManager.js" } ], "$augmentedBy": [], "filepath": "core\\renderers\\webgl\\managers\\BlendModeManager.js" }