public static void Draw(CCamera cam, GameTime gameTime) { for (int i = 0; i < _pickups.Count; i++) { _pickups[i].Draw(cam, gameTime); if (selectedPickupId == i) { CSimpleShapes.AddBoundingSphere(_pickups[i]._Model.BoundingSphere, Color.Black); } } }
public static void Draw(CCamera cam, GameTime gameTime) { for (int i = 0; i < _tTrees.Count; i++) { _tTrees[i]._tree.DrawTrunk(_tTrees[i]._worldMatrix, cam._view, cam._projection); if (selectedTreeId == i) { CSimpleShapes.AddBoundingSphere(_tTrees[i]._boundingSphere, Color.Black); } } // We draw leaves at the end for (int i = 0; i < _tTrees.Count; i++) { if (_tTrees[i]._useBranches) { _tTrees[i]._tree.DrawLeaves(_tTrees[i]._worldMatrix, cam._view, cam._projection); } } }