Class: CanvasMaskManager

SINT.CanvasMaskManager

A set of functions used to handle masking.

new SINT.CanvasMaskManager (renderer)

Name Type Description
renderer SINT.CanvasRenderer

The canvas renderer.

Methods

destroy ()

Destroys this canvas mask manager.

popMask (renderer)

Restores the current drawing context to the state it was before the mask was applied.

Name Type Description
renderer SINT.CanvasRenderer

The renderer context to use.

pushMask (maskData)

This method adds it to the current stack of masks.

Name Type Description
maskData object

the maskData that will be pushed

renderGraphicsShape (graphics)

Renders a SINT.Graphics shape.

Name Type Description
graphics SINT.Graphics

The object to render.