Begin() public method

Begins the draw operation.
public Begin ( ) : void
return void
コード例 #1
0
ファイル: Game.cs プロジェクト: ThuCommix/Sharpex2D
 /// <summary>
 /// Processes a Render.
 /// </summary>
 /// <param name="spriteBatch">The SpriteBatch.</param>
 /// <param name="gameTime">The GameTime.</param>
 public virtual void OnDrawing(SpriteBatch spriteBatch, GameTime gameTime)
 {
     spriteBatch.Begin();
     foreach (IGameComponent gameComponent in GameComponentManager)
     {
         gameComponent.Draw(spriteBatch, gameTime);
     }
     spriteBatch.End();
 }