在Cocos2d-X 3.x里面,已经集成了截屏功能,单独放在utils命名空间里,实现在base/ccUtils.h文件里面.看下函数申明 /** Capture the entire screen * To ensure the snapshot is applied after everything is updated and rendered in the current frame, * we need to wrap the operation with a custom comm