Mail Archives: djgpp/1997/09/10/17:34:13
kovax AT cbhouse DOT fr schrieb:
> HI!
>
> i'm using allegro to make a spectacular game since about one year!
> (a demo will out very soon...)
>
> I you like to use many graphic mode, and i've some problem with the VESA2L
> mode...
>
> in fact does anybody know how to make page flipping in VESA2L.
>
since virtual height is only restricted by mem size in VESA modes, you can make
up two sub-BITMAPs of 'screen' eg at (0,0) and (0, physical_height).
write a function that swaps the two BITMAP pointers and sets up the correct
display start address via the scroll function of allegro. Swapping the pointers
makes you able to have one pointer always pointing to the visible screen and
the other one pointing to the hidden page (where to draw).
Now you have to call this function every time you have completed one frame.
NOTE: Since it waits for a vertical retrace, it may waste a lot of time.
- Raw text -