- Timestamp:
- 11/12/09 13:07:13 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osggeometry/osggeometry.cpp
r7648 r10741 514 514 osg::StateSet* stateSet = new osg::StateSet(); 515 515 polyGeom->setStateSet(stateSet); 516 517 #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) && !defined(OSG_GL3_AVAILABLE) 516 518 osg::PolygonStipple* polygonStipple = new osg::PolygonStipple; 517 519 stateSet->setAttributeAndModes(polygonStipple,osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON); 520 #endif 518 521 519 522 printTriangles("Triangles/Strip/Fan",*polyGeom); … … 615 618 0, 616 619 1, 617 2,618 3620 3, 621 2 619 622 }; 620 623 … … 625 628 // and UIntDrawElements which contains ... unsigned int indices. 626 629 // The first parameter to DrawElements is 627 polyGeom->addPrimitiveSet(new osg::DrawElementsUShort(osg::PrimitiveSet:: QUADS,numIndices,myIndices));630 polyGeom->addPrimitiveSet(new osg::DrawElementsUShort(osg::PrimitiveSet::TRIANGLE_STRIP,numIndices,myIndices)); 628 631 629 632 // new we need to add the texture to the Drawable, we do so by creating a
