Class: MaskManager

Tiny. MaskManager

Name Type Description
renderer Tiny.WebGLRenderer

The renderer this manager works for.

Extends

Members

The renderer this manager works for.

Methods

Generic destroy methods to be overridden by the subclass

Generic method called when there is a WebGL context change.

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

Name Type Description
target Tiny.DisplayObject

Display Object to pop the mask from

maskData Tiny.Sprite | Tiny.Graphics

The masking data.

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

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

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

Name Type Description
target Tiny.DisplayObject

Display Object to push the mask to

maskData Tiny.Sprite | Tiny.Graphics

The masking data.

pushScissorMask(target, maskData)

Name Type Description
target Tiny.DisplayObject

Display Object to push the mask to

maskData Tiny.Graphics

The masking data.

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

Name Type Description
target Tiny.RenderTarget

Display Object to push the sprite mask to

maskData Tiny.Sprite

Sprite to be used as the mask

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

Name Type Description
maskData Tiny.Sprite | Tiny.Graphics

The masking data.

Documentation generated by JSDoc 3.4.3 on Mon Dec 03 2018 17:48:52 GMT+0800 (CST)