migrating from cocos2d to cocos2dx
objc中 dealoc()用c++中析构函数
如
-(void)dealloc
{
[superdealloc];
}
写作
RenderTextureTest::~RenderTextureTest()
{
if (NULL != m_brush)
{
m_brush->release();
m_brush = NULL;
}
}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。