Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    IGamePlatform Interface

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

    Interface for a game platform (OS, machine dependent).

    public interface IGamePlatform
    Name Description
    Properties
    DefaultAppDirectory

    Gets the default app directory.

    MainWindow

    Gets the main window.

    Methods
    CreateWindow(GameContext)

    Creates the a new GameWindow. See remarks.

    | Improve this Doc View Source

    Properties


    DefaultAppDirectory

    Gets the default app directory.

    string DefaultAppDirectory { get; }
    Property Value
    Type Description
    System.String

    The default app directory.


    MainWindow

    Gets the main window.

    GameWindow MainWindow { get; }
    Property Value
    Type Description
    GameWindow

    The main window.

    | Improve this Doc View Source

    Methods


    CreateWindow(GameContext)

    Creates the a new GameWindow. See remarks.

    GameWindow CreateWindow(GameContext gameContext = null)
    Parameters
    Type Name Description
    GameContext gameContext

    The window context. See remarks.

    Returns
    Type Description
    GameWindow

    A new game window.

    Remarks

    This is currently only supported on Windows Desktop. The window context supported on windows is a subclass of System.Windows.Forms.Control (or null and a default GameForm will be created).


    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