RenderingScale
Introduction
Code Example - Increasing RenderingScale with the Keyboard
void CustomActivity(bool firstTimeCalled)
{
var cloudLayer = Map.MapLayers.FindByName("CloudLayer");
var keyboard = InputManager.Keyboard;
if(keyboard.KeyDown(Microsoft.Xna.Framework.Input.Keys.Up))
{
cloudLayer.RenderingScale *= 1.02f;
}
else if(keyboard.KeyDown(Microsoft.Xna.Framework.Input.Keys.Down))
{
cloudLayer.RenderingScale /= 1.02f;
}
}
Last updated
Was this helpful?