Esempio n. 1
0
        public void Update()
        {
            Vector3 position    = renderingEngine.Camera.Parent.Transformation.Position;
            Vector3 orientation = renderingEngine.Camera.Forward;
            Vector3 up          = new Vector3(0f, 1f, 0f);

            AL.Listener(ALListener3f.Position, ref position);
            AL.Listener(ALListenerfv.Orientation, ref orientation, ref up);

            renderingEngine.Update();
            physicsEngine.Update();

            game.Update();

            foreach (Entity entity in entities)
            {
                entity.Update();

                physicsEngine.Simulate(entity);
            }

            physicsEngine.Simulate();
        }
Esempio n. 2
0
 private void OnLoad(object sender, EventArgs eventArgs)
 {
     RenderingEngine.Update();
     Invalidate();
 }