UIRenderingContext Class
Namespace: Stride.UI.RenderersAssembly: Stride.UI.dll
The UI drawing context. It provides information about how to render UIElements for drawing.
public class UIRenderingContext
Name | Description | |
---|---|---|
Fields | ||
Resolution | Gets the virtual resolution of the UI. |
|
ViewProjectionMatrix | Gets the view projection matrix of the UI. |
|
Properties | ||
DepthBias | The value of the depth bias to use for draw call. |
|
DepthStencilBuffer | The final depth stencil buffer to draw to. |
|
GraphicsContext | The active graphics context. |
|
RenderTarget | The final render target to draw to. |
|
ShouldSnapText | Gets or sets the value indicating if UI text should be snapped. |
|
StencilTestReferenceValue | The current reference value for the stencil test. |
|
Time | The current time. |
Fields
Resolution
Gets the virtual resolution of the UI.
public Vector3 Resolution
Field Value
Type | Description |
---|---|
Vector3 |
ViewProjectionMatrix
Gets the view projection matrix of the UI.
public Matrix ViewProjectionMatrix
Field Value
Type | Description |
---|---|
Matrix |
Properties
DepthBias
The value of the depth bias to use for draw call.
public int DepthBias { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DepthStencilBuffer
The final depth stencil buffer to draw to.
public Texture DepthStencilBuffer { get; set; }
Property Value
Type | Description |
---|---|
Texture |
GraphicsContext
The active graphics context.
public GraphicsContext GraphicsContext { get; set; }
Property Value
Type | Description |
---|---|
GraphicsContext |
RenderTarget
The final render target to draw to.
public Texture RenderTarget { get; set; }
Property Value
Type | Description |
---|---|
Texture |
ShouldSnapText
Gets or sets the value indicating if UI text should be snapped.
public bool ShouldSnapText { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
StencilTestReferenceValue
The current reference value for the stencil test.
public int StencilTestReferenceValue { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Time
The current time.
public GameTime Time { get; }
Property Value
Type | Description |
---|---|
GameTime |