Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » input responsiveness

This thread is locked; no one can reply to it. rss feed Print
 1   2 
input responsiveness
William Labbett
Member #4,486
March 2004
avatar

Don't quite get your idea. Doesn't mine sound like it'd work ? Seems simpler.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Your way would work, but I think it would be confusing to keep track of the offsets and the sizes of each section of the bitmap.

With my way, you'd have :

 A       C

333     444
222
111

C->B  B   A->B
     
     444  444
          333
          222

And every time you needed a new blot you would create it on C, draw it to the unused bitmap, and then draw the rest of the connecting blot from the bitmap in use, and they would swap places. I suppose you could do away with C and draw the new blot strip directly on the unused bitmap.

William Labbett
Member #4,486
March 2004
avatar

Let me see if I understand

The next bit would be

A C

333 444
222
111

C->B B A->B

444 444
333
222

B C

444 555
333
222

C->A A B->A

555 555
444
333

Seems to be what you mean.

/* EDIT - formatting! */

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

 1   2 


Go to: