algorithm 学习之 for_each
摘要:对于algorithm里面的函数使用不算多,但是用过之后才发现,之前写过很多多余的代码,所以打算系统的学习使用下algorithm里的东西,首先就是for_each。 先看下for_each的定义:template inline _LIBCPP_INLINE_VISIBILITY_Function...
阅读全文
cocos2dx 3.2 Touch Listen和menu回调实现截屏
摘要:在Cocos2d-X 3.x里面,已经集成了截屏功能,单独放在utils命名空间里,实现在base/ccUtils.h文件里面。看下函数申明 /** Capture the entire screen * To ensure the snapshot is applied after ...
阅读全文