[Plib-cvs] plib/src/pw pwMacOSX.cxx,1.4,1.5
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2004-03-24 01:27:36
|
Update of /cvsroot/plib/plib/src/pw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25056/plib/src/pw Modified Files: pwMacOSX.cxx Log Message: Fixes for MacOSX/Mac Index: pwMacOSX.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pw/pwMacOSX.cxx,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- pwMacOSX.cxx 28 Feb 2004 22:35:03 -0000 1.4 +++ pwMacOSX.cxx 24 Mar 2004 01:16:50 -0000 1.5 @@ -1,72 +1,858 @@ -#include "ul.h" -/* ONLY COMPILE THIS FILE FOR MAC-OS/X SYSTEMS */ +/* + * - with Mac OS 8.6 to 9.2: + * - must be linked with the following libraries: + * InterfaceLib, accessors.o, AppearanceLib and OpenGL (it contains agl) + * + * - ACTIVE_SLEEPTIME must be defined to 0 for the fastest execution; + * but it will not let other app to get events. [...839 lines suppressed...] void pwCleanup () { + if (!pwInitialized) + { + ulSetError(UL_WARNING, "call to pwCleanup without call to pwInit"); + return; + } + + if (currContext != NULL) + { + aglSetDrawable (currContext, NULL); + aglSetCurrentContext (NULL); + aglDestroyContext ( currContext ); + } + if (pwWindow != NULL) DisposeWindow(GRAFPTR pwWindow); } |