コード例 #1
0
ファイル: GUIManager.cs プロジェクト: jsgervais/DirectX3D
 /// <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);
 }
コード例 #2
0
 /// <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);
 }