Xna Framework 3.1 ((better)) <LATEST>
GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(); spriteBatch.Draw(pixel, new Rectangle(100, 100, 200, 50), Color.Red); spriteBatch.End(); base.Draw(gameTime);
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) Exit(); base.Update(gameTime); xna framework 3.1
spriteBatch = new SpriteBatch(GraphicsDevice); pixel = new Texture2D(GraphicsDevice, 1, 1); pixel.SetData(new[] Color.White ); GraphicsDevice
protected override void Draw(GameTime gameTime) spriteBatch = new SpriteBatch(GraphicsDevice)