mirror of https://github.com/axmolengine/axmol.git
remove setGrid getGrid in class Node
This commit is contained in:
parent
349724b6fd
commit
09a9b1f557
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue