|
From: James W. W. <os...@jw...> - 2008-08-24 06:18:47
|
OK, I've done some testing with the 64-bit patch. My first comment is that I'm not sure if I like the symbol QUESA_SUPPORT_QUICKDRAW, since a Carbon app using Quesa does not necessarily use QuickDraw to any significant degree. Maybe QUESA_SUPPORT_HITOOLBOX or QUESA_SUPPORT_AGL. When building for 64 bit, I removed the following sources from the target: QD3DViewer.c E3Viewer.c E3ViewerOldAPIs.c E3MacDrawContext.c Quesa.rsrc (I think this is only needed for the viewer?) In QD3DDrawContext.c, I placed the Q3MacDrawContext_ functions under the condition #if QUESA_OS_MACINTOSH & QUESA_SUPPORT_QUICKDRAW. In E3Main.c, I added the QUESA_SUPPORT_QUICKDRAW condition to the E3Viewer_RegisterClass and E3Viewer_UnregisterClass calls. In E3MacSystem.c, in E3MacSystem_Terminate, I surrounded the aglResetLibrary stuff by #if QUESA_SUPPORT_QUICKDRAW. In E3DrawContext.c, I put QUESA_SUPPORT_QUICKDRAW conditions on the calls to E3MacDrawContext_RegisterClass, E3MacDrawContext_UnregisterClass, and E3MacDrawContext_NewWithWindow. With these changes, and using the 10.5 SDK, the framework compiles and links as x86_64. Then I built the Cocoa sample as 64 bit, and it runs! Activity Monitor shows that it is indeed running as Intel 64 bit. |