Advertisement

OS X Question...

Started by September 23, 2003 02:46 PM
4 comments, last by Avi 21 years, 5 months ago
I need to program on OS X but I do not want to get stuck inside of OS X only frameworks, so I can move my code into any platform... should I be using freeglut inside of cocoa but use freeglut to get access to the keyboard & mouse, etc & just use cocoa for init my "windows" ?
use SDL, I haven''t had to change a line of code between compiling under Linux, FreeBSD or Windows.
"I can only show you the door, your the one who has to walk through it." -Morpheus
Advertisement
seconded.
[size="1"]
and BTW if you ever need cross platform GUI stuff, try www.fltk.org - it''s got a native macosX version and works great in win and linux too. Integrates very nicel with opengl. It''s not too hot in macos <9 i think wxwindows is ok for that though.
[size="1"]
SDL on Mac OS X is broken if you want to resize your window.
you''ll lose the context and all textures, display lists, etc.



SDL is probably the best choice, though Glut will work just fine... if you can live with all its failings.

Be warned that OS X's gcc compiler is much stricter than MSVC, I often end up re-writing large portions windows code to comply with the higher standards.

On a similar topic: for some reason, on OS X you can only compile SDL Apps in Project Builder, other compilers just don't seem to cope.

AP: That is a bug in your code, works just fine for me.

-------------------------------------------
Here's to the crazy ones, the misfits, the rebels, the troublemakers, the round pegs in the square holes, the ones who see things differently.
-------------------------------------------

[edited by - swiftcoder on September 25, 2003 12:53:34 PM]

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

This topic is closed to new replies.

Advertisement