Show
Ignore:
Timestamp:
04/26/11 14:07:37 (4 years ago)
Author:
robert
Message:

From Mattias Helsing, "Fixes two of the osgWidget examples that were broken due to changed
virtual function prototypes in osgWidget/EventInterface"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgwidgetmenu/osgwidgetmenu.cpp

    r12292 r12310  
    2828    } 
    2929 
    30     bool mousePush(double, double, osgWidget::WindowManager*) { 
     30    bool mousePush(double, double, const osgWidget::WindowManager*) { 
    3131        return true; 
    3232    } 
    3333 
    34     bool mouseEnter(double, double, osgWidget::WindowManager*) { 
     34    bool mouseEnter(double, double, const osgWidget::WindowManager*) { 
    3535        setColor(0.6f, 0.6f, 0.6f, 1.0f); 
    3636         
     
    3838    } 
    3939 
    40     bool mouseLeave(double, double, osgWidget::WindowManager*) { 
     40    bool mouseLeave(double, double, const osgWidget::WindowManager*) { 
    4141        setColor(0.3f, 0.3f, 0.3f, 1.0f); 
    4242         
     
    8383    } 
    8484 
    85     bool mousePush(double, double, osgWidget::WindowManager*) { 
     85    bool mousePush(double, double, const osgWidget::WindowManager*) { 
    8686        if(!_window->isVisible()) _window->show(); 
    8787 
     
    9191    } 
    9292 
    93     bool mouseLeave(double, double, osgWidget::WindowManager*) { 
     93    bool mouseLeave(double, double, const osgWidget::WindowManager*) { 
    9494        if(!_window->isVisible()) setColor(0.8f, 0.8f, 0.8f, 0.8f); 
    9595