Show
Ignore:
Timestamp:
04/23/14 11:08:26 (less than one hour ago)
Author:
robert
Message:

Introduced new scheme for setting up which version of OpenGL/OpenGL ES the OSG is compiled for.

To select standard OpenGL 1/2 build with full backwards and forwards comtability use:

./configure
make

OR

./configure -DOPENGL_PROFILE=GL2

To select OpenGL 3 core profile build using GL3/gl3.h header:

./configure -DOPENGL_PROFILE=GL3

To select OpenGL Arb core profile build using GL/glcorearb.h header:

./configure -DOPENGL_PROFILE=GLCORE

To select OpenGL ES 1.1 profile use:

./configure -DOPENGL_PROFILE=GLES1

To select OpenGL ES 2 profile use:

./configure -DOPENGL_PROFILE=GLES2

Using OPENGL_PROFILE will select all the appropriate features required so no other settings in cmake will need to be adjusted.
The new configuration options are stored in the include/osg/OpenGL header that deprecates the old include/osg/GL header.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowCocoa.mm

    r13130 r13376  
    10751075    _updateContext = false; 
    10761076    _valid = _initialized = true; 
     1077     
     1078    // make sure the event queue has the correct window rectangle size and input range 
     1079    getEventQueue()->syncWindowRectangleWithGraphcisContext(); 
    10771080} 
    10781081 
     
    12411244    // Cocoa's origin is bottom/left: 
    12421245    getEventQueue()->getCurrentEventState()->setMouseYOrientation(osgGA::GUIEventAdapter::Y_INCREASING_UPWARDS); 
     1246 
     1247    // make sure the event queue has the correct window rectangle size and input range 
     1248    getEventQueue()->syncWindowRectangleWithGraphcisContext(); 
    12431249 
    12441250    _valid = _initialized = _realized = true;