PDA

View Full Version : What's the best, erm, window handling thing?


ferum
2006.08.06, 07:58 PM
Sorry for the ambiguous title, I don't know what to call it, but I'm talking about an API to handle window creation, managment, and keyboard and mouse input. I've been using GLUT, but I thought I check and see which is best. Thoughts?

OneSadCookie
2006.08.06, 08:01 PM
Depends what you want. GLUT is simple, but probably not good in the longer term. SDL is not very mac-like. Cocoa requires you to hack around a reasonable amount of the built-in functionality to get what you want for a game. Carbon is incredibly verbose. GameShell has poor mouse handling in either windowed or full-screen, depending on your perspective (though if anyone can tell me what it *should* do, I'll be happy to fix it :) )

akb825
2006.08.06, 08:13 PM
If you just want a window (or full screen) and events, I'd say SDL is a pretty good choice. It's fairly straight forward, full featured (much more so than GLUT), and cross-platform. If you don't care about any "Mac-like" features, it's definitely the way to go. A bunch of commercial games use it, too. The two I know of for sure are Quake IV and UT2k4. (at least on the Mac)

OneSadCookie
2006.08.06, 08:15 PM
The Mac port of Feeding Frenzy also uses SDL -- in fact, just about everything that Ryan Gordon ported does :)

ferum
2006.08.06, 08:53 PM
:shock: And it doesn't force me to do object-oriented programming!
ding ding ding ! We have a winner! :)
Thanks for the help!

Jones
2006.08.07, 02:25 PM
:shock: And it doesn't force me to do object-oriented programming!
ding ding ding ! We have a winner! :)
Thanks for the help!

Does GLUT? :???:

AnotherJake
2006.08.07, 02:52 PM
No, GLUT does not require object-oriented programming.

Duane
2006.08.07, 03:06 PM
yea, but using it feels like wading through a tub of sand up to your neck.