Table of Contents

Class GameContext<TK>

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.

public abstract class GameContext<TK> : GameContext

Type Parameters

TK
Inheritance
GameContext<TK>
Derived
Inherited Members

Constructors

GameContext(TK, int, int, bool)

Initializes a new instance of the GameContext class.

protected GameContext(TK control, int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)

Parameters

control TK

The control.

requestedWidth int

Width of the requested.

requestedHeight int

Height of the requested.

isUserManagingRun bool

Properties

Control

Underlying control associated with context.

public TK Control { get; }

Property Value

TK