Texture
Introduction
Code Example
Sprite sprite;sprite = SpriteManager.AddSprite("redball.bmp");if (InputManager.Keyboard.KeyPushed(Keys.D1))
{
sprite.Texture = FlatRedBallServices.Load<Texture2D>("redball.bmp");
}
else if(InputManager.Keyboard.KeyPushed(Keys.D2))
{
sprite.Texture = FlatRedBallServices.Load<Texture2D>("FRB_logo.png");
}
Last updated
Was this helpful?
