Beispiel #1
0
        public void GLControlMainOnUpdateFrame(object sender, EventArgs e)
        {
            // Update camera and animation controller.
            camera.OnUpdate();
            animationController.OnApplicationIdle(sender, e);

            // Hacky, prevents double invalidation.
            if (animationController.isAnimating == false)
            {
                glControlMain.Invalidate();
            }
        }