Xna Framework 3.1 Link
protected override void Update(GameTime gameTime)
spriteBatch = new SpriteBatch(GraphicsDevice); pixel = new Texture2D(GraphicsDevice, 1, 1); pixel.SetData(new[] Color.White ); xna framework 3.1
protected override void LoadContent()
protected override void Draw(GameTime gameTime) pixel = new Texture2D(GraphicsDevice
graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; pixel.SetData(new[] Color.White )
GraphicsDeviceManager graphics; SpriteBatch spriteBatch; Texture2D pixel;
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) Exit(); base.Update(gameTime);