Changeset 22509 in vbox for trunk/src/VBox/GuestHost/OpenGL/spu_loader
- Timestamp:
- Aug 27, 2009 11:46:29 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 51530
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/spu_loader/glloader.py
r21312 r22509 31 31 #define SYSTEM_GL "libGL.dylib" 32 32 #define SYSTEM_CGL "OpenGL" 33 #define SYSTEM_AGL "AGL" 33 # ifndef VBOX_WITH_COCOA_QT 34 # define SYSTEM_AGL "AGL" 35 # endif 34 36 #elif defined(IRIX) || defined(IRIX64) || defined(Linux) || defined(FreeBSD) || defined(AIX) || defined(SunOS) || defined(OSF1) 35 37 #if defined(Linux) … … 52 54 #define SYSTEM_GL_LIB_DIR "/System/Library/Frameworks/OpenGL.framework/Libraries" 53 55 #define SYSTEM_CGL_DIR "/System/Library/Frameworks/OpenGL.framework" 54 #define SYSTEM_AGL_DIR "/System/Library/Frameworks/AGL.framework"55 56 56 static CRDLL *cglDll = NULL; 57 # ifndef VBOX_WITH_COCOA_QT 58 # define SYSTEM_AGL_DIR "/System/Library/Frameworks/AGL.framework" 57 59 static CRDLL *aglDll = NULL; 60 # endif 58 61 #endif 59 62 … … 259 262 cglDll = NULL; 260 263 264 # ifndef VBOX_WITH_COCOA_QT 261 265 crDLLClose( aglDll ); 262 266 aglDll = NULL; 267 # endif 263 268 #endif 264 269 } … … 290 295 #ifdef DARWIN 291 296 const char *env_cgl_syspath = crGetenv( "CR_SYSTEM_CGL_PATH" ); 297 # ifndef VBOX_WITH_COCOA_QT 292 298 const char *env_agl_syspath = crGetenv( "CR_SYSTEM_AGL_PATH" ); 299 # endif 293 300 #endif 294 301 … … 318 325 crDebug( "Found it in %s.", !env_cgl_syspath ? "default path" : env_cgl_syspath ); 319 326 327 # ifndef VBOX_WITH_COCOA_QT 320 328 crDebug( "Looking for the system's AGL library..." ); 321 329 aglDll = __findSystemGL( env_agl_syspath, SYSTEM_AGL_DIR, SYSTEM_AGL ); … … 327 335 328 336 crDebug( "Found it in %s.", !env_agl_syspath ? "default path" : env_agl_syspath ); 337 # endif 329 338 #endif 330 339 """ … … 454 463 455 464 print '#elif defined(DARWIN)' 465 print '# ifndef VBOX_WITH_COCOA_QT' 456 466 for fun in useful_agl_functions: 457 467 print '\tinterface->%s = (%sFunc_t) crDLLGetNoError( aglDll, "%s" );' % (fun,fun,fun) 468 print '# endif' 458 469 459 470 for fun in useful_cgl_functions:
Note:
See TracChangeset
for help on using the changeset viewer.