public void Draw() { DrawableSet drawSet = new DrawableSet(); foreach (var state in TraverseDepthFirst()) { drawSet.UnionWith(state.Drawables); } drawSet.Draw(); }
public override void OnRenderFrame(FrameEventArgs e) { base.OnRenderFrame(e); sprites.Draw(); }