axmol/cocos/2d/CCNewDrawNode.cpp

48 lines
617 B
C++
Raw Normal View History

2013-11-16 03:29:11 +08:00
//
// Created by NiTe Luo on 11/14/13.
//
#include "CCNewDrawNode.h"
2013-11-19 06:58:41 +08:00
#include "QuadCommand.h"
2013-11-16 03:29:11 +08:00
NS_CC_BEGIN
NewDrawNode *NewDrawNode::create()
{
NewDrawNode* pRet = new NewDrawNode();
if (pRet && pRet->init())
{
pRet->autorelease();
}
else
{
CC_SAFE_DELETE(pRet);
}
return pRet;
}
NewDrawNode::NewDrawNode()
{
}
NewDrawNode::~NewDrawNode()
{
}
bool NewDrawNode::init()
{
2013-11-16 09:32:29 +08:00
return DrawNode::init();
2013-11-16 03:29:11 +08:00
}
void NewDrawNode::draw()
{
2013-11-19 06:58:41 +08:00
updateTransform();
2013-11-16 03:29:11 +08:00
2013-11-19 06:58:41 +08:00
// QuadCommand* quadCommand = new QuadCommand(0, _vertexZ, 0, _shaderProgram, _blendFunc, )
2013-11-16 03:29:11 +08:00
}
NS_CC_END