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
object
GameContext<TK>
Derived
Inherited Members
Extension Methods

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

Whether the caller manages the game loop.

Properties

Control

Underlying control associated with context.

public TK Control { get; }

Property Value

TK