I have a epub version so, I dont know what is the page 60 actually in the book
but I guess.
This is the draw function of The SceneNode class
void SceneNode::draw(sf::RenderTarget &target, sf::RenderStates states) const
{
states.transform *= getTransform();
drawCurrent(target, states);
for each (const SceneNode::SceneNodePtr &child in _children)
{
child->draw(target, states);
}
}
In The World class I call this function to render the parent node
_renderWindow->draw(_sceneGraph);
after I call it. Does the _sceneGraph call
void SceneNode::draw(sf::RenderTarget &target, sf::RenderStates states)
by itself?