Table of Contents

Class UIRenderingContext

Namespace
Stride.UI.Renderers
Assembly
Stride.UI.dll

The UI drawing context. It provides information about how to render UIElements for drawing.

public class UIRenderingContext
Inheritance
UIRenderingContext

Fields

Resolution

Gets the virtual resolution of the UI.

public Vector3 Resolution

Field Value

Vector3

ViewProjectionMatrix

Gets the view projection matrix of the UI.

public Matrix ViewProjectionMatrix

Field Value

Matrix

Properties

DepthBias

The value of the depth bias to use for draw call.

public int DepthBias { get; set; }

Property Value

int

DepthStencilBuffer

The final depth stencil buffer to draw to.

public Texture DepthStencilBuffer { get; set; }

Property Value

Texture

GraphicsContext

The active graphics context.

public GraphicsContext GraphicsContext { get; set; }

Property Value

GraphicsContext

RenderTarget

The final render target to draw to.

public Texture RenderTarget { get; set; }

Property Value

Texture

ShouldSnapText

Gets or sets the value indicating if UI text should be snapped.

public bool ShouldSnapText { get; set; }

Property Value

bool

StencilTestReferenceValue

The current reference value for the stencil test.

public int StencilTestReferenceValue { get; set; }

Property Value

int

Time

The current time.

public GameTime Time { get; }

Property Value

GameTime