Пример #1
0
        public void Render(Graphics graphics, Camera camera)
        {
            if (!root.IsVisible())
            {
                return;
            }

            this.Camera = camera;
            root.Draw(graphics, 1f);

            if (Debug)
            {
                DrawDebug();
                root.DebugRender(graphics);
            }
        }
Пример #2
0
        public void Render(Batcher batcher, Camera camera)
        {
            if (!root.IsVisible())
            {
                return;
            }

            Camera = camera;
            root.Draw(batcher, 1f);

            if (Debug)
            {
                DrawDebug();
                root.DebugRender(batcher);
            }
        }