68kMLA Classic Interface
This is a version of the 68kMLA forums for viewing on your favorite old mac. Visitors on modern platforms may prefer the main site.
| Click here to select a new forum. | | Alternate Screen Buffer LC | Posted by: WMW8142 on 2022-05-13 01:46:02 Hello, I am working with System 7.5.3 and Think C 7.0, with Basilisk Emulator (Mac LC 68020 ).
I am programming a game and need the Alternate Screen Buffer because it flickers now.
In the Inside Macintosh books there are explanations in assambler and on https://www.mactech.com/ there is a Pascal explanation. Unfortunately I don't know these languages, I'm programming in C. Does anyone have a C example of how to use the Alternate Screen Buffer? Thanks for help | Posted by: demik on 2022-05-13 04:45:33 Don't quote me here, but I don't think there is an alternate screen buffer in anything other than 68000 Macs.
Do you have a link of that ASM article ? You can embed ASM in C easily. | Posted by: cheesestraws on 2022-05-13 04:50:00 Yes, using the alternate screen buffer will really restrict the machines your thing will run on and I agree with @demik, I think it's only the monochrome 68000 Macs that have it.
(Also, please remember that Basilisk II is not a hardware-accurate emulator, nor is it intended to be; it loads lots of its own code into the emulated Mac to do stuff, and if you try to bypass the OS on it, you can probably expect it not to behave quite as a real machine would) | Posted by: Melkhior on 2022-05-16 23:41:58 Depending on what you want to achieve the 6.0.7-and-later would be to use offscreen GWorld - you draw in them off-screen then copy them over quickly.
Also if you want some things to happen between screen refresh, you can use the Vertical Retrace Manager. | | 1 |
|