04 2012 档案
摘要://ccTouchBegan必须实现,否则会报错bool PicScan::ccTouchBegan(CCTouch* pTouch, CCEvent* event){ return true;}void PicScan::ccTouchMoved(CCTouch *touch, CCEvent *event){ //获得触摸点初始坐标 CCPoint beginLoc = touch->locationInView(touch->view()); beginLoc = CCDirector::sharedDirector()->convertToGL(beginLoc);
阅读全文
摘要:在代理函数 bool AppDelegate::applicationDidFinishLaunching() 里开头添加以下代码: _tsetlocale(LC_ALL,_T("")); ::AllocConsole(); ::freopen("conout$","w",stdout); 别忘了加头文件 #include <tchar.h>然后你就可以使用printf啦,哇咔咔。
阅读全文

浙公网安备 33010602011771号