OSX GLUT?

The Mac GLUT makes calls to interfacelib that are not supported in carbonlib. Is there a carbonized GLUT?

Here are some steps if you want to try to recompile (I haven’t done so, but the source project is included with the OpenGL SDK).

-Delete the access paths to the MacOS Support folder and add one to the Carbon Support folder.
-Change the prefix file under the C/C++ Language section to CarbonHeaders.h

-Now when you try to compile you’ll see all the errors that you need to fix. Most of them are basically just replacing something like window->port with GetWindowPort(window) or else SetPortWindowPort(window).

for example
SetPort(window)
might become
SetPort(GetWindowPort(window))

also
iconRect = window->portRect;
becomes
GetWindowPortBounds(window,&iconRect) I think.

SetPort(GetWindowPort(window))
is the same as
SetPortWindowPort(window) actually.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.