프로퍼티 | 타입 | 설명 | |
---|---|---|---|
ContentToLoad | List |
||
Layers | List |
||
LoadingComplete | bool | ||
LoadingInProgress | bool |
메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
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 |
리턴 | void |
public Draw ( |
||
gameTime | ||
리턴 | void |
protected GameState ( string name, Application application ) : System | ||
name | string | The name of the GameState |
application | Application | The current Application instance |
리턴 | 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 | |
리턴 | 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. |
리턴 | System |
public RemoveLayer ( ILayer layer ) : void | ||
layer | ILayer | The layer instance to remove |
리턴 | void |
public Update ( |
||
gameTime | ||
리턴 | void |