Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    UIRenderingContext Class

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

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

    System.Object → UIRenderingContext
    Derived from UIRenderingContext:

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation