Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
UIRenderingContext.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 
5 using SiliconStudio.Paradox.Games;
6 using SiliconStudio.Paradox.Graphics;
7 
8 namespace SiliconStudio.Paradox.UI.Renderers
9 {
10  /// <summary>
11  /// The UI drawing context.
12  /// It provides information about how to render <see cref="UIElement"/>s for drawing.
13  /// </summary>
14  public class UIRenderingContext
15  {
16  /// <summary>
17  /// The current time.
18  /// </summary>
19  public GameTime Time { get; internal set; }
20 
21  /// <summary>
22  /// The final render target to draw to.
23  /// </summary>
24  public RenderTarget RenderTarget { get; set; }
25 
26  /// <summary>
27  /// The final depth stencil buffer to draw to.
28  /// </summary>
30 
31  /// <summary>
32  /// The current reference value for the stencil test.
33  /// </summary>
34  public int StencilTestReferenceValue { get; set; }
35 
36  /// <summary>
37  /// The value of the depth bias to use for draw call.
38  /// </summary>
39  public int DepthBias { get; set; }
40  }
41 }
Current timing used for variable-step (real time) or fixed-step (game time) games.
Definition: GameTime.cs:31
The UI drawing context. It provides information about how to render UIElements for drawing...