End() public méthode

Ends the draw operation.
public End ( ) : void
Résultat void
Exemple #1
0
 /// <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();
 }