我需要知道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)