TextureFilter
Introduction
Code Example
Sprite sprite = SpriteManager.AddSprite("redball.bmp");
sprite.Width = SpriteManager.Camera.RelativeXEdgeAt(0) * 2;
sprite.Height = SpriteManager.Camera.RelativeYEdgeAt(0) * 2;if (InputManager.Keyboard.KeyPushed(Keys.Space))
{
// If filtering is off
if (FlatRedBallServices.GraphicsOptions.TextureFilter == TextureFilter.Point)
{
// Turn the filtering on so it smooths things
FlatRedBallServices.GraphicsOptions.TextureFilter = TextureFilter.Linear;
}
else // If it's on
{
// Turn the filtering off so things look pixellated.
FlatRedBallServices.GraphicsOptions.TextureFilter = TextureFilter.Point;
}
}

TextureFilter.Point and Tile Maps
Last updated
Was this helpful?