Show
Ignore:
Timestamp:
11/21/14 18:22:30 (2 hours ago)
Author:
robert
Message:

Implemented a clamp to edge policy for the Image::g/setColor(color, texcoord).

Files:
1 modified

Legend:

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

    r12529 r13482  
    1 #include <QtCore/QTimer> 
    2 #include <QtGui/QApplication> 
    3 #include <QtGui/QGridLayout> 
     1#include <QTimer> 
     2#include <QApplication> 
     3#include <QGridLayout> 
    44 
    55#include <osgViewer/CompositeViewer> 
     
    2020    { 
    2121        setThreadingModel(threadingModel); 
     22         
     23        // disable the default setting of viewer.done() by pressing Escape. 
     24        setKeyEventSetsDone(0); 
    2225 
    2326        QWidget* widget1 = addViewWidget( createCamera(0,0,100,100), osgDB::readNodeFile("cow.osgt") );