小编use*_*800的帖子

cocos2d-x using_ns_cc

我需要知道C++中Cocos2D-X中这句话的功能是什么:

USING_NS_CC
Run Code Online (Sandbox Code Playgroud)

代码示例:

#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"
#include "GameOverScene.h"

USING_NS_CC;

HelloWorld::~HelloWorld()
{
    if (_targets)
    {
        _targets->release();
        _targets = NULL;
    }

    if (_projectiles)
    {
        _projectiles->release();
        _projectiles = NULL;
    }

    // cpp don't need to call super dealloc
    // virtual destructor will do this
}
Run Code Online (Sandbox Code Playgroud)

c++ cocos2d-x c++11 cocos2d-x-3.0

2
推荐指数
1
解决办法
1385
查看次数

标签 统计

c++ ×1

c++11 ×1

cocos2d-x ×1

cocos2d-x-3.0 ×1