摘要: #include #include void OnProcessExceptionHandler(int sigl){ do { std::string str = ""; void* arrayList[128]; int count = backtrace(arrayList, 128); char** pStr = backtrace_symbols(arrayList, count); if (pStr == NULL) break; for (int i=0; i... 阅读全文
posted @ 2013-11-04 23:13 MrBlue 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 1: 运行程序,单击鼠标左键点亮相应位置的字母,比如:0、1、2、/ 等2: 选择 Edit->Open Image Manager。弹出一个“Image Manager" 对话框3: 点击Image->import Image.在弹出的对话框中选择对应的图片路径4: 然后指定对应的id。此id就是要替换的字符的标识。可以将鼠标悬停在对应的格子上,右下角的“48:30"中的第一项即是Id号5: 设定x,y的偏移量(看需求)6: 点ok并逐一添加相应的字体7: 点击Option->Export options,在弹出的对话框中选择 Bit depth:32; 阅读全文
posted @ 2013-11-04 23:09 MrBlue 阅读(582) 评论(0) 推荐(0) 编辑
摘要: // 矩形和圆形碰撞检测bool IsCirlceCollisionRect(float circleXPos, float circleYPos, float radius, float rectX, float rectY, float rectW, float rectH){ float arcR = radius; float arcOx = circleXPos; float arcOy = circleYPos; //分别判断矩形4个顶点与圆心的距离是否= rectY && arcOy rectX + rectW) minDi... 阅读全文
posted @ 2013-11-04 23:08 MrBlue 阅读(1879) 评论(0) 推荐(1) 编辑
摘要: std::list split_utf8_string(const std::string& text){ std::list temp; do { if (text.length() <= 0) break; std::string::const_iterator begin = text.begin(); std::string::const_iterator end = text.end(); while (begin != end) { unsign... 阅读全文
posted @ 2013-11-04 23:07 MrBlue 阅读(926) 评论(0) 推荐(0) 编辑
摘要: //Opacity 0完全透明 255完全不透明//ALPHA 0完全透明 1完全不透明CCRenderTexture* pRT = CCRenderTexture::create(480,320);pRT->setPosition(Point(480,320));addChild(pRT,1);CCSprite* pSpr1 = CCSprite::create("1.png");pSpr1->setAnchorPoint(CCPoint::ZERO);ccBlendFunc blend;blend.src = GL_ONE;blend.dst = GL_ZE 阅读全文
posted @ 2013-11-04 23:02 MrBlue 阅读(2013) 评论(0) 推荐(0) 编辑