remove setGrid getGrid in class Node

This commit is contained in:
Huabing.Xu 2013-12-11 13:41:05 +08:00
parent 349724b6fd
commit 09a9b1f557
2 changed files with 9 additions and 9 deletions

View File

@ -412,12 +412,12 @@ Camera* Node::getCamera()
}
/// grid setter
void Node::setGrid(GridBase* pGrid)
{
CC_SAFE_RETAIN(pGrid);
CC_SAFE_RELEASE(_grid);
_grid = pGrid;
}
// void Node::setGrid(GridBase* pGrid)
// {
// CC_SAFE_RETAIN(pGrid);
// CC_SAFE_RELEASE(_grid);
// _grid = pGrid;
// }
/// isVisible getter

View File

@ -714,18 +714,18 @@ public:
* @return A Grid object that is used when applying effects
* @js NA
*/
virtual GridBase* getGrid() { return _grid; }
//virtual GridBase* getGrid() { return _grid; }
/**
* @js NA
*/
virtual const GridBase* getGrid() const { return _grid; }
//virtual const GridBase* getGrid() const { return _grid; }
/**
* Changes a grid object that is used when applying effects
*
* @param grid A Grid object that is used when applying effects
*/
virtual void setGrid(GridBase *grid);
//virtual void setGrid(GridBase *grid);
/// @} end of Grid