glutDragEventFunc?

I’m trying to clean up the code from OF 0.07 for XCode 4 in 10.7. I got the code examples to compile by switching to the 10.6 sdk/32-bit, but I noticed that there’s a custom framework included. GLUT.framework doesn’t use the system or sdk version, it has a custom copy include with of.

I’m a little confused why there is a custom binary included, and what it was compiled from? I can’t find glutDragEventFunc anywhere in google except in OF.

Was it brought forward from from an older sdk like 10.4?

That’s just an event handler. I think it was just compiled for 10.6 or 10.7 32bit but I know that other people have run 07 w/o problems on 10.7, so it might help if you can post the errors that you’re received. You do need to build 32 bit, so if you have the build set for 64 bit, that would cause problems.

[quote=“joshuajnoble, post:2, topic:7921”]

That’s just an event handler. I think it was just compiled for 10.6 or 10.7 32bit but I know that other people have run 07 w/o problems on 10.7, so it might help if you can post the errors that you’re received. You do need to build 32 bit, so if you have the build set for 64 bit, that would cause problems.
[/quote]If I include the 10.7 or 10.6 GLUT.framework instead of this one, I get glutDragEventFunc not found.

I was just curious why a binary was linked in.

edit: ah, found it.

Added custom Glut framework where fullscreen does not prevent you switching applications. Examples need to be updated to use this. Relates to Issue #3.

https://github.com/openframeworks/openFrameworks/blob/e3c165714311042c8fdeaf548cd9675aa641f4a0/libs/glut/lib/macosx/GLUT.framework/Versions/A/GLUT

https://github.com/openframeworks/openFrameworks/issues/3

yes theo hacked glut to have more events than the one that comes with OSX there’s also some modifications to solve some problems with fullscreen. I think you can disable it in ofAppGlutWindow commenting some define so it doesn’t use the non-existent functions