12-06-2022, 04:12 AM
(12-06-2022, 03:49 AM)james2464 Wrote:Had to be done in Q(uick)BASIC. Be happy and use QB64(PE), using "_LOADIMAGE" or "_NEWIMAGE" to have a "page" and then using "_PUTIMAGE" at least to display it into the "current" screen. Way back then while EGA (LOL) was the best that could be done with graphics there wasn't a lot of memory and the programmer had to fumble with those bit planes to get color, which explains those cumbersome "OUT" statements.Code: (Select All)Swap ActivePAGE, VisualPAGE 'SWAP values of page variables...
Screen 9, , ActivePAGE, VisualPAGE 'which toggles active/visual page
There isn't even a need to "flip buffers" like had to be done so often for WindowsXP DirectX programming. At least two buffers were required which was the size of the screen, and the program had to go back and forth between them, showing one while drawing on the other one.