Beispiel #1
0
        void Events_Tick(object sender, TickEventArgs e)
        {
            fgroup.AnimateOneFrame();
            txtSprite.X     = 100;
            txtSprite.Y     = 100;
            txtSprite.Color = System.Drawing.Color.Wheat;



            //if (framecount < showForFrameCount)
            {
                Tao.FreeGlut.Glut.glutBitmapString(Tao.FreeGlut.Glut.GLUT_BITMAP_TIMES_ROMAN_10, txtSprite.Text);
                framecount++;
            }
            Video.GLSwapBuffers();
            //CopyFrontBufferToBack();
        }
Beispiel #2
0
 protected override void OnPaint(PaintEventArgs e)
 {
     if (DesignMode)
     {
         base.OnPaint(e);
     }
     else
     {
         if (flgroup != null)
         {
             if (Wgl.wglMakeCurrent(hdc, hglrc))
             {
                 flgroup.AnimateOneFrame();
                 CopyFrontBufferToBack();
                 if (Types.iSettingBufferMode == Types.BUFFER.BUFFER_MODE_SINGLE)
                 {
                     Gdi.SwapBuffers(hdc);
                 }
             }
         }
     }
 }