Class GameContext<TK>
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
TKThe control.
requestedWidth
intWidth of the requested.
requestedHeight
intHeight of the requested.
isUserManagingRun
bool
Properties
Control
Underlying control associated with context.
public TK Control { get; }
Property Value
- TK