Exemplo n.º 1
0
        void Instalize()
        {
            try
            {
                MainScene = new Scene();
                Shared    = new ShareData();
                gEngine   = new GraphicsEngine();
                pEngine   = new PhysicsEngine();
                sEngine   = new ScriptingEngine();
                iHandler  = new InputHandler();
                aEngine   = new SoundEngine();
#if VR
                vrSystem = new VR.VRSystem();
                GLWindow.gLWindow.RenderFrequency = 80;
#endif
                animEngine           = new AnimationEngine();
                time                 = new Time();
                frameTimer           = new Time();
                frameTimer.FrameTime = 0.01f;
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                Console.ReadKey();
            }
        }
Exemplo n.º 2
0
        internal VRRenderer() : base()
        {
            vrSystem = CoreEngine.vrSystem;
            CoreEngine.gEngine.Resize((int)vrSystem.width, (int)vrSystem.height);
            leftBuffer  = new RenderBuffer(CoreEngine.GetCamera, 4, true);
            rightBuffer = new RenderBuffer(CoreEngine.GetCamera, 4, true);

            //leftBuffer.OnResize((int)vrSystem.width, (int)vrSystem.height);
            //rightBuffer.OnResize((int)vrSystem.width, (int)vrSystem.height);

            //Console.WriteLine("{0} {1}", CoreEngine.GetCamera.Width, CoreEngine.GetCamera.Height);
        }