Changeset 1983 for OpenSceneGraph/trunk/examples/osghud/osghud.cpp
- Timestamp:
- 06/24/03 17:40:09 (10 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/examples/osghud/osghud.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osghud/osghud.cpp
r1938 r1983 36 36 osg::StateSet* stateset = geode->getOrCreateStateSet(); 37 37 stateset->setMode(GL_LIGHTING,osg::StateAttribute::OFF); 38 //stateset->setMode(GL_DEPTH_TEST,osg::StateAttribute::OFF); 38 39 #if 0 40 // to ensure the hud appears on top we can either use osg::Depth to force the 41 // depth fragments to be placed at the front of the screen. 39 42 stateset->setAttribute(new osg::Depth(osg::Depth::LESS,0.0,0.0001)); 43 #else 44 // or disable depth test, and make sure that the hud is drawn after everything 45 // else so that it always appears ontop. 46 stateset->setMode(GL_DEPTH_TEST,osg::StateAttribute::OFF); 47 stateset->setRenderBinDetails(11,"RenderBin"); 48 #endif 40 49 41 50 osg::Vec3 position(150.0f,800.0f,0.0f);
