Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GameWindowRenderer Class

    Namespace: Stride.Games
    Assembly: Stride.Games.dll

    A GameSystem that allows to draw to another window or control. Currently only valid on desktop with Windows.Forms.

    System.Object → DisposeBase → ComponentBase → GameSystemBase → GameWindowRenderer
    Derived from GameWindowRenderer:

    public class GameWindowRenderer : GameSystemBase, IDisposable, ICollectorHolder, IGameSystemBase, IComponent, IReferencable, IUpdateable, IDrawable, IContentable
    Name Description
    Constructors
    GameWindowRenderer(IServiceRegistry, GameContext)

    Initializes a new instance of the GameWindowRenderer class.

    Properties
    GameContext

    Gets the underlying native window.

    PreferredBackBufferFormat

    Gets or sets the preferred back buffer format.

    PreferredBackBufferHeight

    Gets or sets the height of the preferred back buffer.

    PreferredBackBufferWidth

    Gets or sets the width of the preferred back buffer.

    PreferredDepthStencilFormat

    Gets or sets the preferred depth stencil format.

    Presenter

    Gets or sets the presenter.

    Window

    Gets the window.

    Methods
    BeginDraw()
    CreateOrUpdatePresenter()
    Destroy()
    EndDraw()
    Initialize()
    | Improve this Doc View Source

    Constructors


    GameWindowRenderer(IServiceRegistry, GameContext)

    Initializes a new instance of the GameWindowRenderer class.

    public GameWindowRenderer(IServiceRegistry registry, GameContext gameContext)
    Parameters
    Type Name Description
    IServiceRegistry registry

    The registry.

    GameContext gameContext

    The window context.

    | Improve this Doc View Source

    Properties


    GameContext

    Gets the underlying native window.

    public GameContext GameContext { get; }
    Property Value
    Type Description
    GameContext

    The underlying native window.


    PreferredBackBufferFormat

    Gets or sets the preferred back buffer format.

    public PixelFormat PreferredBackBufferFormat { get; set; }
    Property Value
    Type Description
    PixelFormat

    The preferred back buffer format.


    PreferredBackBufferHeight

    Gets or sets the height of the preferred back buffer.

    public int PreferredBackBufferHeight { get; set; }
    Property Value
    Type Description
    System.Int32

    The height of the preferred back buffer.


    PreferredBackBufferWidth

    Gets or sets the width of the preferred back buffer.

    public int PreferredBackBufferWidth { get; set; }
    Property Value
    Type Description
    System.Int32

    The width of the preferred back buffer.


    PreferredDepthStencilFormat

    Gets or sets the preferred depth stencil format.

    public PixelFormat PreferredDepthStencilFormat { get; set; }
    Property Value
    Type Description
    PixelFormat

    The preferred depth stencil format.


    Presenter

    Gets or sets the presenter.

    public GraphicsPresenter Presenter { get; protected set; }
    Property Value
    Type Description
    GraphicsPresenter

    The presenter.


    Window

    Gets the window.

    public GameWindow Window { get; }
    Property Value
    Type Description
    GameWindow

    The window.

    | Improve this Doc View Source

    Methods


    BeginDraw()

    public override bool BeginDraw()
    Returns
    Type Description
    System.Boolean
    Overrides
    GameSystemBase.BeginDraw()

    CreateOrUpdatePresenter()

    protected virtual void CreateOrUpdatePresenter()

    Destroy()

    protected override void Destroy()
    Overrides
    ComponentBase.Destroy()

    EndDraw()

    public override void EndDraw()
    Overrides
    GameSystemBase.EndDraw()

    Initialize()

    public override void Initialize()
    Overrides
    GameSystemBase.Initialize()

    Inherited Members

    GameSystemBase.Game
    GameSystemBase.Services
    GameSystemBase.Content
    GameSystemBase.GraphicsDevice
    GameSystemBase.DrawOrderChanged
    GameSystemBase.VisibleChanged
    GameSystemBase.Draw(GameTime)
    GameSystemBase.Visible
    GameSystemBase.DrawOrder
    GameSystemBase.InitGraphicsDeviceService()
    GameSystemBase.EnabledChanged
    GameSystemBase.UpdateOrderChanged
    GameSystemBase.Update(GameTime)
    GameSystemBase.Enabled
    GameSystemBase.UpdateOrder
    GameSystemBase.OnDrawOrderChanged(Object, EventArgs)
    GameSystemBase.OnUpdateOrderChanged(Object, EventArgs)
    GameSystemBase.IContentable.LoadContent()
    GameSystemBase.IContentable.UnloadContent()
    GameSystemBase.LoadContent()
    GameSystemBase.UnloadContent()
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    ComponentBase.ToString()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    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