title: drawing bounding box of sprite
body: <p>In cocos2d-x, how can I display the bounding box for all sprites that are children of this layer?</p>
  
  <p>Here's my starting point:</p>
  
  <pre><code>void MyLayer::draw()
  {
      // super draw   
      CCLayer::draw();
  
      // Iterate through all nodes of this layer
      for ( CCNode* node = ??? )
      {
          // Make sure the node is a CCSprite
          if ( node == CCSprite ??? )
          {
              CCSprite* sprite = (CCSprite*) node;
              ccDrawRect( sprite-&gt;boundingBox() ??? );
          }
  
      }
  }
  </code></pre>