Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

single-pixel access

Discussion and announcements regarding the Mac port… er, original version of Oolite.

Moderators: another_commander, winston

Post Reply
User avatar
harry747
Deadly
Deadly
Posts: 135
Joined: Mon Feb 23, 2009 8:57 pm
Location: England

single-pixel access

Post by harry747 »

hi

ok, i admit it - this has nothing to do with oolite, but it has something to do with development. anyway, I'm thinking about a project that requires me to set the color of single pixels. no fancy image processing (like anti-aliasing) required. what is the best (fastest, easiest) way top do that? can someone point me in the right direction? thanks.
MacBook pro, OSX 10.8.5, Xcode 5
User avatar
Ivan
Competent
Competent
Posts: 33
Joined: Fri Jul 25, 2008 11:57 am
Location: Reading, UK

Post by Ivan »

Oolite uses SDL (libsdl.org) to access the screen at a low level. I know zippity zilch about Macs but SDL is cross-platform, and I use it on a Windows PC for pixel-level manipulation. It's a bit fiddly to get started with but is fast, and very nice to use once you get used to it.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6565
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

Actually the Mac version does not use SDL, only the Linux and Windows ports do. But yes, SDL is an OK library to play with, from what I have seen.
User avatar
Ivan
Competent
Competent
Posts: 33
Joined: Fri Jul 25, 2008 11:57 am
Location: Reading, UK

Post by Ivan »

Whoops, there's my zippity zilch knowledge showing itself :oops:
Post Reply