示例#1
0
        public void Draw()
        {
            DrawableSet drawSet = new DrawableSet();

            foreach (var state in TraverseDepthFirst())
            {
                drawSet.UnionWith(state.Drawables);
            }
            drawSet.Draw();
        }
示例#2
0
 public override void OnRenderFrame(FrameEventArgs e)
 {
     base.OnRenderFrame(e);
     sprites.Draw();
 }