// 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); }
// 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); }