API Docs for: 2.2.1
Show:

WebGLMaskManager Class

Constructor

WebGLMaskManager

()

Methods

destroy

()

Destroys this object.

destroy

()

Destroys this object.

popMask

(
  • maskData
  • renderSession
)

Removes the last filter from the filter stack and doesn't return it.

Parameters:

  • maskData Array
  • renderSession Object

    an object containing all the useful parameters

pushMask

(
  • maskData
  • renderSession
)

Applies the Mask and adds it to the current filter stack.

Parameters:

setBlendMode

(
  • blendMode
)

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

Parameters:

  • blendMode Number

    the blendMode, should be a Pixi const, such as PIXI.BlendModes.ADD

setContext

(
  • gl
)

Sets the WebGL Context.

Parameters:

  • gl WebGLContext

    the current WebGL drawing context

setContext

(
  • gl
)

Parameters:

  • gl WebGLContext

    the current WebGL drawing context