Class GameContextFactory
Given a AppContextType creates the corresponding GameContext instance based on the current executing platform.
public static class GameContextFactory
- Inheritance
-
GameContextFactory
Methods
NewGameContext(AppContextType, int, int, bool)
Given a type
create the appropriate game Context for the current executing platform.
public static GameContext NewGameContext(AppContextType type, int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
Parameters
type
AppContextTyperequestedWidth
intrequestedHeight
intisUserManagingRun
bool
Returns
NewGameContextAndroid()
public static GameContext NewGameContextAndroid()
Returns
NewGameContextDesktop(int, int, bool)
public static GameContext NewGameContextDesktop(int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
Parameters
Returns
NewGameContextSDL(int, int, bool)
public static GameContext NewGameContextSDL(int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
Parameters
Returns
NewGameContextUWPCoreWindow(int, int)
public static GameContext NewGameContextUWPCoreWindow(int requestedWidth = 0, int requestedHeight = 0)
Parameters
Returns
NewGameContextUWPXaml(int, int)
public static GameContext NewGameContextUWPXaml(int requestedWidth = 0, int requestedHeight = 0)
Parameters
Returns
NewGameContextWpf(int, int, bool)
public static GameContext NewGameContextWpf(int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
Parameters
Returns
NewGameContextiOS()
public static GameContext NewGameContextiOS()