migrating from cocos2d to cocos2dx
更新:HHH   时间:2023-1-7


objc中 dealoc()用c++中析构函数

 

-(void)dealloc

{

[super dealloc];

}

 

 

 

写作

 

RenderTextureTest::~RenderTextureTest()

{

    if (NULL != m_brush)

    {

        m_brush->release();

        m_brush = NULL;

    }

}

 

返回游戏开发教程...