std::bind与CC_CALLBACK
http://blog.csdn.net/star530/article/details/21245565
其中的bind相当于(以前接触的)注册一个函数
https://my.oschina.net/u/555701/blog/219844
bind bind是一组用于函数绑定的模板
CallFunc系列:
http://blog.csdn.net/elloop/article/details/50438032
http://www.cnblogs.com/worldtraveler/p/3193108.html
各种回调
http://www.cnblogs.com/zouzf/p/3491986.html
/
调用时,CallFun系列::create()时,里面的参数我们可以写成多种形式
std::function<void()>这个参考第二篇文章
下面的参考第三篇文章
1、CallFunc::create( std::bind(&ActionCallFunction::callback1, this) ) // 使用bind来构造一个std::function<void()>类型的对象.
2、
//使用lambda来构造一个std::function<void()>类型的对象
3、CallFunc::create(CC_CALLBACK_0(ComRankScene::calcel_modify_callBack,this)) //CC_CALLBACK系列
绑定bind 还有CC_CALLBACK_0参考第一二篇文章
还有一篇文章,bind图解原理
http://www.cnblogs.com/xusd-null/p/3698969.html
注意什么时候加&什么时候不加
this->schedule(schedule_selector(GOverLayer::text),1.5f));
garl->runAction(Sequence::create(MoveBy::create(1.5f,Vec2(0,50)),CallFunc::create(CC_CALLBACK_0(CGOverLayer::chGde,this)),NULL));