Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GameContext<TK> Class

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

    Generic version of GameContext. The later is used to describe a generic game Context. This version enables us to constraint the game context to a specifc toolkit and ensures a better cohesion between the various toolkit specific classes, such as InputManager, GameWindow.

    System.Object → GameContext → GameContext<TK>
    Derived from GameContext<TK>: GameContextDesktop<TK>

    public abstract class GameContext<TK> : GameContext
    Type Parameters
    Name Description
    TK
    Name Description
    Constructors
    GameContext(TK, Int32, Int32, Boolean)

    Initializes a new instance of the GameContext class.

    Properties
    Control

    Underlying control associated with context.

    | Improve this Doc View Source

    Constructors


    GameContext(TK, Int32, Int32, Boolean)

    Initializes a new instance of the GameContext class.

    protected GameContext(TK control, int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
    Parameters
    Type Name Description
    TK control

    The control.

    System.Int32 requestedWidth

    Width of the requested.

    System.Int32 requestedHeight

    Height of the requested.

    System.Boolean isUserManagingRun
    | Improve this Doc View Source

    Properties


    Control

    Underlying control associated with context.

    public TK Control { get; }
    Property Value
    Type Description
    TK

    Inherited Members

    GameContext.ContextType
    GameContext.IsUserManagingRun
    GameContext.RunCallback
    GameContext.ExitCallback
    GameContext.DeviceCreationFlags
    GameContext.InitializeDatabase
    GameContext.ProductLocation

    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