Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 6th, 2012  |  syntax: C#  |  size: 0.38 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.             spriteBatch.Begin();
  2.             spriteBatch.Draw(
  3.                 texture : texture,
  4.                 position : new Vector2(
  5.                 (Window.ClientBounds.Width / 2) - (texture.Width / 2),
  6.                 (Window.ClientBounds.Height / 2) - (texture.Height / 2)),
  7.                 color : Color.White,
  8.                 layerDepth : 0);
  9.             spriteBatch.End();