mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
remove cc.DrawNode from core module
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
require('../shape-nodes/CCDrawNode');
|
||||
|
||||
//-------------------------- ClippingNode's canvas render cmd --------------------------------
|
||||
cc.ClippingNode.CanvasRenderCmd = function(renderable){
|
||||
this._rootCtor(renderable);
|
||||
|
||||
@@ -22,9 +22,13 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
require('../../clipping-nodes/CCClippingNode');
|
||||
require('../../clipping-nodes/CCClippingNodeCanvasRenderCmd');
|
||||
require('../../clipping-nodes/CCClippingNodeWebGLRenderCmd');
|
||||
|
||||
require('../../shape-nodes/CCDrawNode');
|
||||
|
||||
var Base = cc._RendererInSG;
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,9 +16,6 @@ require('./core/sprites/CCScale9Sprite');
|
||||
require('./core/sprites/CCScale9SpriteCanvasRenderCmd');
|
||||
require('./core/sprites/CCScale9SpriteWebGLRenderCmd');
|
||||
require('./core/sprites/CCSpriteBatchNode');
|
||||
require('./shape-nodes/CCDrawNode');
|
||||
require('./shape-nodes/CCDrawNodeCanvasRenderCmd');
|
||||
require('./shape-nodes/CCDrawNodeWebGLRenderCmd');
|
||||
require('./render-texture/CCRenderTexture');
|
||||
require('./render-texture/CCRenderTextureCanvasRenderCmd');
|
||||
require('./render-texture/CCRenderTextureWebGLRenderCmd');
|
||||
|
||||
@@ -448,7 +448,9 @@ cc.game.once(cc.game.EVENT_RENDERER_INITED, function () {
|
||||
this._buffer.length = 0;
|
||||
};
|
||||
|
||||
proto._createRenderCmd = function(){
|
||||
require('./CCDrawNodeCanvasRenderCmd');
|
||||
|
||||
proto._createRenderCmd = function () {
|
||||
return new cc.DrawNode.CanvasRenderCmd(this);
|
||||
};
|
||||
}
|
||||
@@ -839,6 +841,8 @@ cc.game.once(cc.game.EVENT_RENDERER_INITED, function () {
|
||||
this._dirty = true;
|
||||
};
|
||||
|
||||
require('./CCDrawNodeWebGLRenderCmd');
|
||||
|
||||
proto._createRenderCmd = function () {
|
||||
return new cc.DrawNode.WebGLRenderCmd(this);
|
||||
};
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
require('../shape-nodes/CCDrawNode');
|
||||
|
||||
/**
|
||||
* !#en Renders the TMX object.
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
var EventTarget = require('../../cocos2d/core/event/event-target');
|
||||
require('../../cocos2d/shape-nodes/CCDrawNode');
|
||||
|
||||
dragonBones.CCArmatureDisplay = cc.Class({
|
||||
name: 'dragonBones.CCArmatureDisplay',
|
||||
|
||||
Reference in New Issue
Block a user