Property | Type | Description | |
---|---|---|---|
ContentToLoad | List |
||
Layers | List |
||
LoadingComplete | bool | ||
LoadingInProgress | bool |
Method | Description | |
---|---|---|
AddLayer ( ILayer layer ) : void |
Adds a Layer instance at the end of the stack The layers are updated and rendered in the order they were added. |
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
Draw ( |
Draws a frame
|
|
Initialize ( ) : void |
Initializes the GameState. Override this method to load any non-graphics resources and query for any required services.
|
|
Load ( ) : void |
Loads content
|
|
PreLoad ( IContentHost host ) : void |
Register an IContentHost instance with this content manager
|
|
RemoveLayer ( ILayer layer ) : void |
Removes a Layer instance from the stack
|
|
Update ( |
Update loop call
|
Method | Description | |
---|---|---|
GameState ( string name, Application application ) : System |
Creates a new GameState instance
|
|
GameState ( string name, Application application, bool useApplicationContent, int bufferWidth, int bufferHeight, DetailPreference precisionMode, DetailPreference lightingRange ) : System | ||
GameState ( string name, Application application, int bufferWidth, int bufferHeight, DetailPreference precisionMode, DetailPreference lightingRange ) : System |
Creates a new instance of the SunBurnGameState
|
|
OnLoadingCompleted ( ) : void |
Raised when the GameState loading is completed
|
Method | Description | |
---|---|---|
BeginFrame ( |
||
CreateFrameBuffers ( int bufferWidth, int bufferHeight, DetailPreference precisionMode, DetailPreference lightingRange ) : void | ||
EndFrame ( ) : void | ||
GraphicsDevice_DeviceReset ( object sender, |
||
IDraw ( |
Draws a frame
|
|
IUpdate ( |
||
LoadAsynchronously ( ) : void |
public AddLayer ( ILayer layer ) : void | ||
layer | ILayer | The layer instance to add |
return | void |
public Draw ( |
||
gameTime | ||
return | void |
protected GameState ( string name, Application application ) : System | ||
name | string | The name of the GameState |
application | Application | The current Application instance |
return | System |
protected GameState ( string name, Application application, bool useApplicationContent, int bufferWidth, int bufferHeight, DetailPreference precisionMode, DetailPreference lightingRange ) : System | ||
name | string | |
application | Application | |
useApplicationContent | bool | |
bufferWidth | int | |
bufferHeight | int | |
precisionMode | DetailPreference | |
lightingRange | DetailPreference | |
return | System |
protected GameState ( string name, Application application, int bufferWidth, int bufferHeight, DetailPreference precisionMode, DetailPreference lightingRange ) : System | ||
name | string | The name of the GameState |
application | Application | The Application instance |
bufferWidth | int | Custom buffer width |
bufferHeight | int | Custom buffer height |
precisionMode | DetailPreference | Increases visual quality at the cost of performance. Generally used in visualizations, most games do not need this option. |
lightingRange | DetailPreference | Increases lighting quality at the cost of performance. Adds additional lighting range when using HDR. |
return | System |
public RemoveLayer ( ILayer layer ) : void | ||
layer | ILayer | The layer instance to remove |
return | void |
public Update ( |
||
gameTime | ||
return | void |