From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: When you know Nothing! Date: Wed, 11 Jun 1997 20:16:42 +0100 Organization: None Distribution: world Message-ID: <3asuiEAamvnzEw6l@talula.demon.co.uk> References: <199706110212 DOT TAA27009 AT geocities DOT com> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 25 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Guilherme Silveira writes: >- When I use the page flipping with Allegro, can I use only Horizontal > flipping? You can scroll in any direction, as long as your virtual screen is large enough to allow it. The virtual screen size is specified as the last two parameters to set_gfx_mode(), although it is obviously limited by the amount of video memory, and on many VESA systems the width must be a power of two. Also, many SVGA cards can only horizontally scroll in increments of four or sometimes even eight pixels. Allegro considers page flipping to be a special case of scrolling, where you are moving by the entire size of the screen, so it is entirely up to you how you want to organise your video RAM. >- Does anyone have some source code with page flipping that can send > me? Look at examples/ex9.c and demo.c for regular page flipping, and examples/ex20.c for triple buffering. -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ Beauty is a French phonetic corruption of a short cloth neck ornament.