Show:

annie.CanvasRender Class

Extends annie.AObject
Module: annie

Available since 1.0.0

Canvas 渲染器

Methods

begin

() public

Defined in libs/CanvasRender.js:56

Available since 1.0.0

开始渲染时执行

beginMask

(
  • target
)
public

Defined in libs/CanvasRender.js:73

Available since 1.0.0

开始有遮罩时调用

Parameters:

CanvasRender

(
  • stage
)
public

Defined in libs/CanvasRender.js:29

Available since 1.0.0

Parameters:

destroy

() Void public

Inherited from annie.AObject: libs/EventDispatcher.js:63

Available since 2.0.0

销毁一个对象 销毁之前一定要做完其他善后工作,否则有可能会出错 特别注意不能在对象自身方法或事件里调用此方法。 比如,不要在显示对象自身的 annie.Event.ON_REMOVE_TO_STAGE 或者其他类似事件调用,一定会报错

Returns:

Void:

draw

(
  • target
)
public

Defined in libs/CanvasRender.js:114

Available since 1.0.0

调用渲染

Parameters:

endMask

() public

Defined in libs/CanvasRender.js:105

Available since 1.0.0

结束遮罩时调用

init

() public

Defined in libs/CanvasRender.js:182

Available since 1.0.0

初始化渲染器

reSize

() public

Defined in libs/CanvasRender.js:195

Available since 1.0.0

当尺寸改变时调用

Properties

instanceId

Number public

Inherited from annie.AObject: libs/EventDispatcher.js:31

Available since 1.0.0

每一个annie引擎对象都会有一个唯一的id码。

Example:

 //获取 annie引擎类对象唯一码
 console.log(this.instanceId);

instanceType

String public

Inherited from annie.AObject: libs/EventDispatcher.js:49

Available since 1.0.3

每一个annie类都有一个实例类型字符串,通过这个字符串,你能知道这个实例是从哪个类实例而来

rootContainer

Any public

Defined in libs/CanvasRender.js:37

Available since 1.0.0

渲染器所在最上层的对象

Default: null

viewPort

Unknown