GameContextFactory Class
Namespace: Stride.Games
Assembly: Stride.Games.dll
Given a AppContextType creates the corresponding GameContext instance based on the current executing platform.
System.Object →
GameContextFactory
Derived from GameContextFactory:
public static class GameContextFactory
Name |
Description |
Methods
|
|
NewGameContext(AppContextType, Int32, Int32, Boolean) |
Given a type create the appropriate game Context for the current executing platform.
|
|
NewGameContextAndroid() |
|
|
NewGameContextDesktop(Int32, Int32, Boolean) |
|
|
NewGameContextiOS() |
|
|
NewGameContextOpenTK(Int32, Int32, Boolean) |
|
|
NewGameContextSDL(Int32, Int32, Boolean) |
|
|
NewGameContextUWPCoreWindow(Int32, Int32) |
|
|
NewGameContextUWPXaml(Int32, Int32) |
|
|
NewGameContextWpf(Int32, Int32, Boolean) |
|
|
Improve this Doc
View Source
Methods
NewGameContext(AppContextType, Int32, Int32, Boolean)
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 |
Name |
Description |
AppContextType |
type |
|
System.Int32 |
requestedWidth |
|
System.Int32 |
requestedHeight |
|
System.Boolean |
isUserManagingRun |
|
Returns
NewGameContextAndroid()
public static GameContext NewGameContextAndroid()
Returns
NewGameContextDesktop(Int32, Int32, Boolean)
public static GameContext NewGameContextDesktop(int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
Parameters
Type |
Name |
Description |
System.Int32 |
requestedWidth |
|
System.Int32 |
requestedHeight |
|
System.Boolean |
isUserManagingRun |
|
Returns
NewGameContextiOS()
public static GameContext NewGameContextiOS()
Returns
NewGameContextOpenTK(Int32, Int32, Boolean)
public static GameContext NewGameContextOpenTK(int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
Parameters
Type |
Name |
Description |
System.Int32 |
requestedWidth |
|
System.Int32 |
requestedHeight |
|
System.Boolean |
isUserManagingRun |
|
Returns
NewGameContextSDL(Int32, Int32, Boolean)
public static GameContext NewGameContextSDL(int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
Parameters
Type |
Name |
Description |
System.Int32 |
requestedWidth |
|
System.Int32 |
requestedHeight |
|
System.Boolean |
isUserManagingRun |
|
Returns
NewGameContextUWPCoreWindow(Int32, Int32)
public static GameContext NewGameContextUWPCoreWindow(int requestedWidth = 0, int requestedHeight = 0)
Parameters
Type |
Name |
Description |
System.Int32 |
requestedWidth |
|
System.Int32 |
requestedHeight |
|
Returns
NewGameContextUWPXaml(Int32, Int32)
public static GameContext NewGameContextUWPXaml(int requestedWidth = 0, int requestedHeight = 0)
Parameters
Type |
Name |
Description |
System.Int32 |
requestedWidth |
|
System.Int32 |
requestedHeight |
|
Returns
NewGameContextWpf(Int32, Int32, Boolean)
public static GameContext NewGameContextWpf(int requestedWidth = 0, int requestedHeight = 0, bool isUserManagingRun = false)
Parameters
Type |
Name |
Description |
System.Int32 |
requestedWidth |
|
System.Int32 |
requestedHeight |
|
System.Boolean |
isUserManagingRun |
|
Returns