Begin() 공개 메소드

Begins the draw operation.
public Begin ( ) : void
리턴 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();
 }