Jump to content

Xna Framework: 3.1

protected override void Update(GameTime gameTime)

protected override void LoadContent()

GraphicsDeviceManager graphics; SpriteBatch spriteBatch; Texture2D pixel; xna framework 3.1

GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(); spriteBatch.Draw(pixel, new Rectangle(100, 100, 200, 50), Color.Red); spriteBatch.End(); base.Draw(gameTime); spriteBatch = new SpriteBatch(GraphicsDevice)

spriteBatch = new SpriteBatch(GraphicsDevice); pixel = new Texture2D(GraphicsDevice, 1, 1); pixel.SetData(new[] Color.White ); pixel = new Texture2D(GraphicsDevice

protected override void Draw(GameTime gameTime)

graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content";