Show
Ignore:
Timestamp:
06/23/08 11:57:45 (6 years ago)
Author:
robert
Message:

From Eric Sokolowsky, "I have made a number of changes intended to get a few things working better on OSX. However, since I'm still pretty new at Mac development and cmake I'm not entirely certain that the changes I have made are benign on other platforms. I have tested these changes on Leopard with CMake 2.6 generating Xcode 3.0 projects, compiling on ppc and i386 for 10.5 and 10.4, and on Linux (CentOS) and everything still seems to work ok. Here are the changes I made (against OSG svn as of this afternoon):

- Added osgviewerCocoa example to APPLE builds
- Fixed corrupt Xcode project generation with CMake 2.6 dealing with ADD_DEFINITIONS and CMake Policy CMP0005 on Leopard
- Resolved CMP0006 warning for examples and programs by setting BUNDLE DESTINATION to same as RUNTIME DESTINATION with CMake 2.6
- Fixed freetype plugin on Leopard to avoid OpenGL linking problem
- Figured out how to use a custom Info.plist included in the project (see osgviewerCocoa application CMakeLists.txt)"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgviewerCocoa/ViewerCocoa.mm

    r8483 r8487  
    369369    // The NSOpenGLCPSwapInterval seems to be vsync. If 1, buffers are swapped with vertical refresh. 
    370370    // If 0, flushBuffer will execute as soon as possible. 
    371     long swap_interval = 1 ; 
     371    const GLint swap_interval = 1 ; 
    372372    [[self openGLContext] setValues:&swap_interval forParameter:NSOpenGLCPSwapInterval]; 
    373373