CCNodeGird解析
2015-09-20 21:35
513 查看
代码:
/** * @brief Base class for Grid Node. */ //网格节点的基类 class CC_DLL NodeGrid : public Node { public: /** Create a Grid Node. * * @return An autorelease Grid Node. */ // 创建一个网格节点 static NodeGrid* create(); /** Get a Grid Node. * * @return Return a GridBase. */ // 得到网格 GridBase* getGrid() { return _nodeGrid; } /** * @js NA */ const GridBase* getGrid() const { return _nodeGrid; } /** * Changes a grid object that is used when applying effects. * * @param grid A Grid object that is used when applying effects. */ // 设置网格 void setGrid(GridBase *grid); /** Set the Grid Target. * * @param target A Node is used to set the Grid Target. */ //设置目标 void setTarget(Node *target); // overrides virtual void visit(Renderer *renderer, const Mat4 &parentTransform, uint32_t parentFlags) override; CC_CONSTRUCTOR_ACCESS: NodeGrid(); virtual ~NodeGrid(); protected: void onGridBeginDraw(); void onGridEndDraw(); Node* _gridTarget; GridBase* _nodeGrid; GroupCommand _groupCommand; CustomCommand _gridBeginCommand; CustomCommand _gridEndCommand; private: CC_DISALLOW_COPY_AND_ASSIGN(NodeGrid); }; /** @} */
相关文章推荐
- 通过node.js 安装phonegap
- nodeJs 笔记
- Windows安装Nodejs的模块和引用问题(cannot find moudel "xxx")?
- Jade —— 源于 Node.js 的 HTML 模板引擎
- win10 配置nodejs windows服务
- node.js面试题大全-侧重后端应用与对Node核心的理解
- 在windows下的nodejs的环境配置
- node.js面试题大全-侧重后端应用与对Node核心的理解
- node 的 异步 数据库 调用 处理
- nodejs服务器搭建
- LeetCode -- Remove Nth Node From End of List
- Node.js Web框架 - Koa
- Node.js中的中间件与Connect
- Node.js中的Assert模块
- Node.js中的Net模块
- Node.js中的Console模块
- Node.js中的Path模块
- Node.js开发入门—UDP编程
- SpriteBuilder中的CCB Node尺寸
- SpriteBuilder中的CCB Node尺寸