![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
coco2dx
zyh1290163_com
这个作者很懒,什么都没留下…
展开
-
coco2d-x CCDirector.h文件中变量m_pNotificationNode
1.在CCDiretor.h中有如下说明 /** This object will be visited after the main scene is visited. This object MUST implement the "visit" selector. Useful to hook a notification object, like CCNotifi原创 2014-11-12 13:46:16 · 622 阅读 · 0 评论 -
cocos2d-x 不规则形状按钮的点击判定
cocos2d-x 不规则形状按钮的点击判定原理:1.OpeGL ES提供了glReadPixels[^footnote]函数,来获取当前framebuffer上的像素数据2.cocos2d-x 提供了一个CCRenderTexture,它会帮我们初始化一块framebuffer1.具体实现CCRenderTexture outTexture;outTextu原创 2014-11-05 21:52:05 · 2740 阅读 · 0 评论