Exemplo n.º 1
0
        public override void Initialize()
        {
            game = new OculusTest.Game();
            game.Initialize(this);

            this.Window.AddFlags(WindowManagerFlags.KeepScreenOn);
        }
Exemplo n.º 2
0
        public override void Initialize()
        {
            this.game = new OculusTest.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);
            }

            position   = new Vector2();
            position.X = (this.Width / 2.0f) - (this.splashScreen.Width / 2.0f);
            position.Y = (this.Height / 2.0f) - (this.splashScreen.Height / 2.0f);
            #endregion
        }
Exemplo n.º 3
0
 public override void Initialize()
 {
     game = new OculusTest.Game();
     game.Initialize(this);
 }
Exemplo n.º 4
0
 public override void Initialize()
 {
     game = new OculusTest.Game();
     game.Initialize(this);
 }