vbe ergänzungen


  • Mod

    kosmick übergab mir im irc folgenden code für vbe:

    void SwapBuffers()
    { 
       memcpy(SCREEN, DOUBLEBUFFER, mib.XResolution*mib.YResolution*(mib.BitsPerPixel % 8 == 0 ? mib.BitsPerPixel/8 : mib.BitsPerPixel/8 + 1));
    }
    
    int i, j = 0;
    for( i = 0 ; i <= 420 ; i = i + 10, j++ )
    {
          vbe_drawRectFilled(50+i,275,150+i,400,bright_blue);
          vbe_drawRectFilled(150+i,350,200+i,400,bright_blue);
          vbe_drawCircle(75+i,410,10,bright_blue);
          vbe_drawCircle(175+i,410,10,bright_blue);
          SwapBuffers();
    
          sleepMilliSeconds(10);
          vbe_clearScreen();
    }
    

Anmelden zum Antworten