Page 1 of 1

single-pixel access

Posted: Fri Apr 24, 2009 6:47 pm
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.

Posted: Mon Apr 27, 2009 6:21 am
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.

Posted: Mon Apr 27, 2009 6:27 am
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.

Posted: Mon Apr 27, 2009 7:01 am
by Ivan
Whoops, there's my zippity zilch knowledge showing itself :oops: