/// <summary> /// Render all GUI items /// </summary> /// <param name="device"></param> public void Render(Device device, Matrix worldViewMatrix) { foreach (IRenderable control in _controls) { control.Render(device, worldViewMatrix); } _currentHoverControl?.DrawHover(device, worldViewMatrix); _currentFocusedControl?.DrawFocus(device, worldViewMatrix); }
/// <summary> /// Render all GUI items /// </summary> /// <param name="renderTarget"></param> public void Render(RenderTarget renderTarget) { foreach (IRenderable control in _controls) { control.Render(renderTarget); } _currentHoverControl?.DrawHover(renderTarget); _currentFocusedControl?.DrawFocus(renderTarget); }