GameContext<TK> Class
Namespace: Stride.GamesAssembly: 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.
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. |
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 |
Properties
Control
Underlying control associated with context.
public TK Control { get; }
Property Value
Type | Description |
---|---|
TK |