iDevGames Forums
Using GLUT With Multitouch and Command Keys - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: Using GLUT With Multitouch and Command Keys (/thread-348.html)



Using GLUT With Multitouch and Command Keys - Rasterman - Feb 10, 2010 12:51 PM

I use GLUT for my window and input. Is it possible to capture or disable the Command-Q signal to exit the app? Ideally I would like to capture it and forward to my game to exit/back out of menus properly. If I can't capture it though I would like to disable it, is this an option in the Interface Builder for the main window or something?

Also I was looking at adding support for multi-touch scrolling, any way to do this in a GLUT app?


Using GLUT With Multitouch and Command Keys - OneSadCookie - Feb 10, 2010 02:19 PM

GLUT is not suitable for a shipping application.


Using GLUT With Multitouch and Command Keys - Rasterman - Feb 10, 2010 03:05 PM

OneSadCookie Wrote:GLUT is not suitable for a shipping application.

I guess I should close my business! LOL So does anyone have a constructive answer?


Using GLUT With Multitouch and Command Keys - OneSadCookie - Feb 10, 2010 03:14 PM

That was a constructive answer. Switch to Cocoa (or at least SDL, though that won't help you with multitouch).


Using GLUT With Multitouch and Command Keys - Skorche - Feb 10, 2010 03:37 PM

GLUT really doesn't seem like it was meant to be anything more than an easy way to get simple OpenGL demos up and running. It works great for that, but it only provides extra basic input and windowing capabilities preventing it from being useful much beyond that.


Using GLUT With Multitouch and Command Keys - AnotherJake - Feb 10, 2010 04:04 PM

From the red book:

Quote:GLUT may not be satisfactory for full-featured OpenGL applications, but you may find it a useful starting point for learning OpenGL.

We've been echoing that here at iDG for years.

I don't know what the status of SDL is on the iPhone, but perhaps it might have some multi-touch support? It's worth a look. ... assuming you're talking about multi-touch for iPhone, that is.


Using GLUT With Multitouch and Command Keys - ThemsAllTook - Feb 10, 2010 04:30 PM

So, a more direct answer: No, GLUT doesn't provide facilities for either of those things. It's very useful for writing small, quick prototypes, but for serious development it lacks many crucial features.


Using GLUT With Multitouch and Command Keys - Rasterman - Feb 10, 2010 07:40 PM

I have used GLUT in several games over the last 3 years and have never had any compatibility problems or complaints, I don't really see any reason it can't be used in a game. I didn't think it would support muti-touch since GLUT came out about 10 years before multi-touch even existed Smile But I thought I'd ask if there has been any developments.