public void StopAnimating()
        {
            if (!IsAnimating)
                return;

            displayLink.Invalidate ();
            displayLink = null;

            DestroyFrameBuffer ();

            IsAnimating = false;
        }
        public void StartAnimating()
        {
            if (IsAnimating)
                return;

            OpenTKHelper.InitilizeRenderTargets (Size.Width, Size.Height);
            CreateFrameBuffer ();
            OpenTKHelper.InitilizeRenderSettings ();

            displayLink = UIScreen.MainScreen.CreateDisplayLink (this, new MonoTouch.ObjCRuntime.Selector ("drawFrame"));
            displayLink.FrameInterval = frameInterval;
            displayLink.AddToRunLoop (NSRunLoop.Current, NSRunLoop.NSDefaultRunLoopMode);

            IsAnimating = true;
        }