Changeset 345 for experimental/distortionNG/extViewer.cpp
- Timestamp:
- Apr 18, 2012, 10:04:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/extViewer.cpp
r342 r345 23 23 arguments.getApplicationUsage()->addCommandLineOption("--distort","load distortion file and set up geometrical distortion for viewer. This includes blending"); 24 24 arguments.getApplicationUsage()->addCommandLineOption("--blend","Set up viewer vor simple blending CullDrawThreadPerContext threading model for viewer."); 25 26 osgDB::Registry::instance()->addFileExtensionAlias("dist", "osgt"); 25 27 } 26 28 … … 153 155 for ( unsigned int row=0; row<rows-1; row++ ) // each strip consists of two affected vertex rows, so we need only row-1 strips. 154 156 { 155 osg::ref_ptr<osg::DrawElementsUInt> de = new osg::DrawElementsUInt( GL_QUAD_STRIP, columns*2); // columns*2 = number of involved vertices for this strip.157 osg::ref_ptr<osg::DrawElementsUInt> de = new osg::DrawElementsUInt(osg::PrimitiveSet::QUAD_STRIP, columns*2); // columns*2 = number of involved vertices for this strip. 156 158 for ( unsigned int col=0; col<columns; col++ ) 157 159 {
Note: See TracChangeset
for help on using the changeset viewer.