Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GameContextFactory Class

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

    Given a AppContextType creates the corresponding GameContext instance based on the current executing platform.

    System.Object → GameContextFactory
    Derived from GameContextFactory:

    public static class GameContextFactory
    Name Description
    Methods
    NewGameContext(AppContextType, Int32, Int32, Boolean)

    Given a type create the appropriate game Context for the current executing platform.

    NewGameContextAndroid()
    NewGameContextDesktop(Int32, Int32, Boolean)
    NewGameContextiOS()
    NewGameContextOpenTK(Int32, Int32, Boolean)
    NewGameContextSDL(Int32, Int32, Boolean)
    NewGameContextUWPCoreWindow(Int32, Int32)
    NewGameContextUWPXaml(Int32, Int32)
    NewGameContextWpf(Int32, Int32, Boolean)
    | Improve this Doc View Source

    Methods


    NewGameContext(AppContextType, Int32, Int32, Boolean)

    Given a type create the appropriate game Context for the current executing platform.

    public static GameContext NewGameContext(AppContextType type, int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
    Parameters
    Type Name Description
    AppContextType type
    System.Int32 requestedWidth
    System.Int32 requestedHeight
    System.Boolean isUserManagingRun
    Returns
    Type Description
    GameContext

    NewGameContextAndroid()

    public static GameContext NewGameContextAndroid()
    Returns
    Type Description
    GameContext

    NewGameContextDesktop(Int32, Int32, Boolean)

    public static GameContext NewGameContextDesktop(int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
    Parameters
    Type Name Description
    System.Int32 requestedWidth
    System.Int32 requestedHeight
    System.Boolean isUserManagingRun
    Returns
    Type Description
    GameContext

    NewGameContextiOS()

    public static GameContext NewGameContextiOS()
    Returns
    Type Description
    GameContext

    NewGameContextOpenTK(Int32, Int32, Boolean)

    public static GameContext NewGameContextOpenTK(int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
    Parameters
    Type Name Description
    System.Int32 requestedWidth
    System.Int32 requestedHeight
    System.Boolean isUserManagingRun
    Returns
    Type Description
    GameContext

    NewGameContextSDL(Int32, Int32, Boolean)

    public static GameContext NewGameContextSDL(int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
    Parameters
    Type Name Description
    System.Int32 requestedWidth
    System.Int32 requestedHeight
    System.Boolean isUserManagingRun
    Returns
    Type Description
    GameContext

    NewGameContextUWPCoreWindow(Int32, Int32)

    public static GameContext NewGameContextUWPCoreWindow(int requestedWidth = 0, int requestedHeight = 0)
    Parameters
    Type Name Description
    System.Int32 requestedWidth
    System.Int32 requestedHeight
    Returns
    Type Description
    GameContext

    NewGameContextUWPXaml(Int32, Int32)

    public static GameContext NewGameContextUWPXaml(int requestedWidth = 0, int requestedHeight = 0)
    Parameters
    Type Name Description
    System.Int32 requestedWidth
    System.Int32 requestedHeight
    Returns
    Type Description
    GameContext

    NewGameContextWpf(Int32, Int32, Boolean)

    public static GameContext NewGameContextWpf(int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
    Parameters
    Type Name Description
    System.Int32 requestedWidth
    System.Int32 requestedHeight
    System.Boolean isUserManagingRun
    Returns
    Type Description
    GameContext

    • Improve this Doc
    • View Source
    In This Article

    Back to top

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