Ejemplo n.º 1
0
Archivo: App.cs Proyecto: wbgl/Samples
        public override void Initialize()
        {
            game = new Vuforia.Game();
            game.Initialize(this);

            this.Window.AddFlags(WindowManagerFlags.KeepScreenOn);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialize this instance.
        /// </summary>
        public override void Initialize()
        {
            this.game = new Vuforia.Game();
            this.game.Initialize(this);

            #region DEFAULT SPLASHSCREEN
            this.backgroundSplashColor = Color.White;
            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.png"))
                {
                    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 = Texture2D.FromFile(WaveServices.GraphicsDevice, stream);
            }
            #endregion
        }
Ejemplo n.º 3
0
        public override void Initialize()
        {
            base.Initialize();

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

            game = new Vuforia.Game();
            game.Initialize(this);
        }
Ejemplo n.º 4
0
 public override void Initialize()
 {
     this.game = new Vuforia.Game();
     this.game.Initialize(this);
 }