Exemplo n.º 1
0
        // RenderToTarget (Renders current batch to parameter target)
        internal void RenderToTarget(IRenderTarget target)
        {
            // Keep view
            View view = target.GetView();

            // Render to target
            _layers.Render(target);

            // Reset view
            target.SetView(view);
        }
Exemplo n.º 2
0
        // Render
        internal void Render(IRenderTarget target)
        {
            // Abort if hidden
            if (_hide)
            {
                return;
            }

            // Set view
            if (_view != null)
            {
                target.SetView(_view);
            }
            else
            {
                target.SetView(_defView.View);
            }

            // Render
            _renderables.Render(target);
        }