renderer Class

Module: cc

The renderer object which provide access to render system APIs, detailed APIs will be available progressively.

Index

Properties
  • renderEngine Object it will be inited as the canvas render engine.
  • drawCalls Number The total draw call count in last rendered frame.

Details

Properties

renderEngine

The render engine is available only after cc.game.EVENT_ENGINE_INITED event.
Normally it will be inited as the webgl render engine, but in wechat open context domain, it will be inited as the canvas render engine. Canvas render engine is no longer available for other use case since v2.0.

meta description
Type Object
Defined in cocos2d/core/renderer/index.js:71
drawCalls

The total draw call count in last rendered frame.

meta description
Type Number
Defined in cocos2d/core/renderer/index.js:98

results matching ""

    No results matching ""