|
From: Elias P. <Eli...@ao...> - 2000-12-27 23:52:30
|
oh, and also... I would like to know about page-flipping/buffering in = 640x480?? If you want to know the difference to 320x200, it is basically the same. = Only, in 320x200 you don't need page-flipping because you can update all = the pixels on the screen fast enough to get smooth animation without it. Page flipping is a technique to create smooth graphics movement. = Basically, you 'buffer' the data to be displayed, and only when they are = ready, they are displayed. For example, if you make an animation where a = circle moves over a background, you will use an 'offscreen-page' or = 'back-buffer' where you first draw the background, then the circle over = it, and then display it. While it is displayed, you (invisibly) draw the = background on the next offscreen page, then the circle on it, and then = swap both pages, so the new one gets displayed. Now you draw the next = animation frame on the first page, and so on... the same is used for = more complex animations like in 3d games. The advantage is that the = watcher of the program never sees how the background and the circle are = drawn, so it looks like there is a smooth animation. (as long as you = flip new pages at least about 30 times per second) I'm not sure how you can tell a DOS program to do this. I'm using the = DOS-Allegro library where i have a function show_video_page to do the = page-flipping, or DirectX where you have Surface->Flip or something = similiar depending on the version. Elias Pschernig |