aglSwapBuffers() private méthode

private aglSwapBuffers ( AGLContext ctx ) : void
ctx AGLContext
Résultat void
Exemple #1
0
 public override void SwapBuffers()
 {
     if (!this.firstSwap && this.carbonWindow.IsControl)
     {
         this.firstSwap = true;
         this.SetDrawable(this.carbonWindow);
         this.Update((IWindowInfo)this.carbonWindow);
     }
     Agl.aglSwapBuffers(this.Handle.Handle);
     this.MyAGLReportError("aglSwapBuffers");
 }
Exemple #2
0
        public override void SwapBuffers()
        {
            // this is part of the hack to avoid dropping the first frame when
            // using multiple GLControls.
            if (firstSwap == false && carbonWindow.IsControl)
            {
                Debug.WriteLine("--> Resetting drawable. <--");
                firstSwap = true;
                SetDrawable(carbonWindow);
                Update(carbonWindow);
            }

            Agl.aglSwapBuffers(Handle.Handle);
            MyAGLReportError("aglSwapBuffers");
        }
Exemple #3
0
 public override void SwapBuffers()
 {
     Agl.aglSwapBuffers(ContextHandle);
     Agl.CheckReturnValue(0, "aglSwapBuffers");
 }