Пример #1
0
        public override void Initialize()
        {
            game = new VuforiaTest.Game();
            game.Initialize(this);

            this.Window.AddFlags(WindowManagerFlags.KeepScreenOn);
        }
Пример #2
0
        public override void Initialize()
        {
            game = new VuforiaTest.Game();
            game.Initialize(this);

            this.Window.AddFlags(WindowManagerFlags.KeepScreenOn);
        }
Пример #3
0
        /// <summary>
        /// Initialize this instance.
        /// </summary>
        public override void Initialize()
        {
            this.game = new VuforiaTest.Game();
            this.game.Initialize(this);

            #region WAVE SOFTWARE LICENSE AGREEMENT
            this.backgroundSplashColor = new Color("#ebebeb");
            this.spriteBatch = new SpriteBatch(WaveServices.GraphicsDevice);

            var resourceNames = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames();
            string name = string.Empty;

            foreach (string item in resourceNames)
            {
                if (item.Contains("SplashScreen.wpk"))
                {
                    name = item;
                    break;
                }
            }

            if (string.IsNullOrWhiteSpace(name))
            {
                throw new InvalidProgramException("License terms not agreed.");
            }

            using (Stream stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(name))
            {
                this.splashScreen = WaveServices.Assets.Global.LoadAsset<Texture2D>(name, stream);
            }
            #endregion
        }
Пример #4
0
        public override void Initialize()
        {
            this.game = new VuforiaTest.Game();
            this.game.Initialize(this);

            #region WAVE SOFTWARE LICENSE AGREEMENT
            this.backgroundSplashColor = new Color("#ebebeb");
            this.spriteBatch           = new SpriteBatch(WaveServices.GraphicsDevice);

            var    resourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames();
            string name          = string.Empty;

            foreach (string item in resourceNames)
            {
                if (item.Contains("SplashScreen.wpk"))
                {
                    name = item;
                    break;
                }
            }

            if (string.IsNullOrWhiteSpace(name))
            {
                throw new InvalidProgramException("License terms not agreed.");
            }

            using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(name))
            {
                this.splashScreen = WaveServices.Assets.Global.LoadAsset <Texture2D>(name, stream);
            }
            #endregion
        }
Пример #5
0
        public override void Initialize()
        {
            base.Initialize();

            this.Adapter.SupportedOrientations = DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight;

            this.displayRequest = new DisplayRequest();
            this.displayRequest.RequestActive();

            game = new VuforiaTest.Game();
            game.Initialize(this);
        }
Пример #6
0
 public override void Initialize()
 {
     this.game = new VuforiaTest.Game();
     this.game.Initialize(this);
 }
Пример #7
0
 public override void Initialize()
 {
     this.game = new VuforiaTest.Game();
     this.game.Initialize(this);
 }