Welcome, Guest | Home | Search | Login | Register
Author The "I've been programming lately and ..." thread (Read 109 times)
Bolkonskij
Administrator
1024 MB
*****
Posts: 2023
View Profile Cornica - Video Entertainment for Mac OS users
on: February 07, 2026, 13:59

As I'm getting back into coding for System 7 in (classic) Mac OS again, and I know some of you do as well, I thought it'd be fun to a have a no frills chat threads where we share our findings/thoughts/ideas.

So like I said, I've started dabbling with C in CodeWarrior again. This time I decided to tackle a topic I've always understood at a conceptional level, but never actually managed to write a program utilizing it. And that is utilizing QDOffscreen.h and using CopyBits() to copy bitmap graphics offscreen and then write that back for flicker-free screen updates. Got it to work now with a dummy program and it was fun to figure out! That next action game might be a long time off still :D but I think I'll next tackle the whole topic of animating sprites, another one I've never seriously dabbled with.

What are you people working on right now ?
ShinobiKenobi
256 MB
*****
Posts: 362
System 7 fan
View Profile My personal website
Reply #1 on: February 08, 2026, 00:55

Regarding programming, I'm just trying a general-purpose app in 68K C in MWCW5 Gold, so that I can get used to the API. But I haven't had much time to work on it, since I've been doing more hardware stuff lately.

I would love a chat in which the programmers (and aspiring Mac programming newbs like me) can all chat openly about programming on classic Mac OS.
lauland
512 MB
*****
Posts: 674
Symtes 7 Mewconer!
View Profile
Reply #2 on: February 12, 2026, 16:44

I'm not working on anything right now, but am itching do something, but not sure what.  Definitely love to chat about programming!

The last thing I worked on was SDL2 for 7/8/9. I started with CodeWarrior 6 pro, since that's the last one that builds m68k apps, but ran into all sorts of limitations due to the C/C++ language support being so behind the times.  It was also a huge pain dealing with giant project files!

So I switched to Retro68, and was able to cross build on Linux and modern MacOS X...a huge bonus was being able to use Makefiles and the speedier compiles on modern machines.

The 2d graphics subsystem includes a giant offscreen PixMap for the window, and CopyBits for blits to update each frame.  Everything is 32 bit pixels right now, although I've tried doing 15/16.  I'd love to do 256 colors (and even B+W), but then you need to handle palettes which are a major pain to keep track of.  (SDL1 has a bug there that I've never figured out).

In theory the 3d part would use OpenGL and just render into the same buffer, and would "just work", but OpenGL on 7/8/9 is a huge can of worms I've yet to open.

I did a HUGE amount of work with threads and semaphores, which even worked well on m68k to my shock and surprise.  The sound subsystem required threads.  I set up a skeleton sound driver but never put the real code in there.

Anyway, love to chat about anything involving classic coding.
Jatoba
256 MB
*****
Posts: 270
System 9 Newcomer!
View Profile
Reply #3 on: February 13, 2026, 20:49

I'm always itching to "come back to the Mac", as well, and do stuff for it. I'm making plans on how I can make time for it. I can't seem to find a window for it even on weekends, but hopefully I can work it out this year.
Pages: [1]

© 2021 System7Today.com.
The Apple Logo, Macintosh™, Mac OS™, and others property of Apple Computer, Inc.
This site is in no way affiliated with Apple Computer, Inc.