PDA

View Full Version : OSX GLUT?



donovan713
12-13-2000, 11:04 AM
The Mac GLUT makes calls to interfacelib that are not supported in carbonlib. Is there a carbonized GLUT?

12-14-2000, 08:18 AM
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.

12-14-2000, 08:19 AM
SetPort(GetWindowPort(window))
is the same as
SetPortWindowPort(window) actually.