page flipping with djgpp and allegro

how can i do page flipping with allegro???

in which video modes does this work???

i'm waiting for reply

-arcon


Comments

  • In allegro and DJGPP i would prolly set the video mode to 320x200x8 in GFX_MODEX mode

    and make sure you set the virtual resolution to 640x400(you can do that because that's about the exact size of the modex screen with a logical width of 80)

    anyways...

    When you want to draw on page 1 you just do normal stuff

    When you want to draw on page 2 you just add 320 to all the x coordinates of what you want to draw

    then you just use the scroll function to scroll between 0, 0 and 320, 0

    It'll happen almost instantly and viola, you'll have page flipping.

    If you need an example just email me and i'm sure i can make some stuff for ya...


    : how can i do page flipping with allegro???

    : in which video modes does this work???

    : i'm waiting for reply

    : -arcon





Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories