Exemplo n.º 1
0
        private void ApplyEngineOptions(EngineOptions pEngineOptions)
        {
            if (pEngineOptions.IsFullscreen())
            {
                this.RequestFullscreen();
            }

            if (pEngineOptions.NeedsMusic() || pEngineOptions.NeedsSound())
            {
                /*this.SetVolumeControlStream(AudioManager.STREAM_MUSIC);*/
                this.VolumeControlStream = (int)Stream.Music;
            }

            switch (pEngineOptions.GetScreenOrientation())
            {
            case EngineOptions.ScreenOrientationOptions.LANDSCAPE:
                this.SetRequestedOrientation(ScreenOrientation.Landscape);
                break;

            case EngineOptions.ScreenOrientationOptions.PORTRAIT:
                this.SetRequestedOrientation(ScreenOrientation.Portrait);
                break;
            }
        }