View Full Version : OSX GLUT?
donovan713
12-13-2000, 10:04 AM
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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.