Exemplo n.º 1
0
        protected override void Initialize()
        {
            base.Initialize();

            this.hololensService = WaveServices.GetService<HololensService>();
            this.spatialInputManager = WaveServices.GetService<SpatialInputService>();

            this.PlaceEntity();
        }
        /// <summary>
        /// Application initialization
        /// </summary>
        public override void Initialize()
        {
            var graphicsDevice = new GraphicsDevice()
            {
                DeviceDirect3D = this.deviceResources.D3DDevice,
                ContextDirect3D = this.deviceResources.D3DDeviceContext,
                DxgiDeviceManager = this.deviceResources.DxgiDeviceManager
            };

            this.Adapter = new Adapter.Adapter(this, graphicsDevice);

            this.hololensService = new HololensService(this);
            Framework.Services.WaveServices.RegisterService(this.hololensService);

            this.eyePoses = new VREyePose[3];

            this.eyePoses[0] = this.eyePoses[1] = this.eyePoses[2] = new VREyePose()
            {
                Orientation = Quaternion.Identity,
                Position = Vector3.Zero,
            };
        }