C# 클래스 Indiefreaks.Xna.Core.GameState

상속: IUpdate, IDraw, IDisposable
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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 ( GameTime gameTime ) : void

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 ( GameTime gameTime ) : void

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 ( GameTime gameTime ) : void
CreateFrameBuffers ( int bufferWidth, int bufferHeight, DetailPreference precisionMode, DetailPreference lightingRange ) : void
EndFrame ( ) : void
GraphicsDevice_DeviceReset ( object sender, EventArgs e ) : void
IDraw ( GameTime gameTime ) : void

Draws a frame

IUpdate ( GameTime gameTime ) : void
LoadAsynchronously ( ) : void

메소드 상세

AddLayer() 공개 메소드

Adds a Layer instance at the end of the stack
The layers are updated and rendered in the order they were added.
public AddLayer ( ILayer layer ) : void
layer ILayer The layer instance to add
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Draw() 공개 메소드

Draws a frame
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

GameState() 보호된 메소드

Creates a new GameState instance
protected GameState ( string name, Application application ) : System
name string The name of the GameState
application Application The current Application instance
리턴 System

GameState() 보호된 메소드

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

GameState() 보호된 메소드

Creates a new instance of the SunBurnGameState
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

Initialize() 공개 추상적인 메소드

Initializes the GameState. Override this method to load any non-graphics resources and query for any required services.
public abstract Initialize ( ) : void
리턴 void

Load() 공개 메소드

Loads content
public Load ( ) : void
리턴 void

OnLoadingCompleted() 보호된 메소드

Raised when the GameState loading is completed
protected OnLoadingCompleted ( ) : void
리턴 void

PreLoad() 공개 메소드

Register an IContentHost instance with this content manager
public PreLoad ( IContentHost host ) : void
host IContentHost
리턴 void

RemoveLayer() 공개 메소드

Removes a Layer instance from the stack
public RemoveLayer ( ILayer layer ) : void
layer ILayer The layer instance to remove
리턴 void

Update() 공개 메소드

Update loop call
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

프로퍼티 상세

ContentToLoad 보호되어 있는 프로퍼티

protected List ContentToLoad
리턴 List

Layers 보호되어 있는 프로퍼티

protected List Layers
리턴 List

LoadingComplete 보호되어 있는 프로퍼티

protected bool LoadingComplete
리턴 bool

LoadingInProgress 보호되어 있는 프로퍼티

protected bool LoadingInProgress
리턴 bool