cocos2dx 使用记录
CCLog 替换 cocos2d::log
CCCommon.cpp CCMessageBox 替换 MessageBox
在CCDeprecated.h 添加不到的 如CCCommon.cpp 没有结构方法 就在 cocos2d.h 引入头文件#include "platform\desktop\CCCommon.h"
在脚本使用就 cocos2d::MessageBox
CCApplication 改为: Application
CCIMEDispatcher 改为:IMEDispatcher
CCDirector改为 Director
CCKeypadDispatcher.h
kTypeBackClicked 是枚举1
kTypeMenuClicked 是枚举2
CCLOG替换为:cocos2d::log
CCPoint 叫 CCGeometry.h 实称Size
CCObject 替换为 Ref ;C:\Work\SVN-MyPlaneWar\projects\14a-Fighter\cocos2d\cocos\2d\CCRef.h
CCEGLViewProtocol.h getDesignResolutionSize()替换为getFrameSize()
CCSet 替换为 __Set
glew_dynamic_binding() 增加为:CCGLView::glew_dynamic_binding()
CCTouchDelegateProtocol.h 位置在 C:\Work\SVN-MyPlaneWar\projects\14a-Fighter\cocos2d\cocos\2d
math.h 替换为 CCMath.h
CCArray替换为 __Array
无法解释的外部符号 错误 2940 error LNK2019: 无法解析的外部符号 "public: static void __cdecl SdkUtils::showAd(int)" (?showAd@SdkUtils@@SAXH@Z),该符号在函数 "public: void __thiscall LXObjectManager::PlayerPlaneBeHit(void)" (?PlayerPlaneBeHit@LXObjectManager@@QAEXXZ) 中被引用 C:\Work\SVN-MyPlaneWar\1projects\projects\14a-Fighter\proj.win32\LXObjectManager.obj Fighter
找到LXObjectManager.cpp 和 LXObjectManager.h 注释掉SdkUtils有关的东西
什么路径:C:\Work\SVN-MyPlaneWar\projects\14a-Fighter\proj.win32\platform\desktop\CCEGLView.h