`cocos2d::Renderer* renderer` will fix the compilation errors.