Changeset 11355
- Timestamp:
- 04/21/10 18:37:28 (3 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 2 modified
-
examples/osgfpdepth/osgfpdepth.cpp (modified) (2 diffs)
-
include/osg/FrameBufferObject (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgfpdepth/osgfpdepth.cpp
r11339 r11355 918 918 // use an ArgumentParser object to manage the program arguments. 919 919 ArgumentParser arguments(&argc,argv); 920 arguments.getApplicationUsage() 921 ->setDescription(arguments.getApplicationName() 920 arguments.getApplicationUsage()->setDescription(arguments.getApplicationName() 922 921 + " demonstrates using a floating point depth buffer.\nThe user can invert the depth buffer range and choose among available multi-sample configurations."); 923 arguments.getApplicationUsage() 924 ->addCommandLineOption("--far <number>", "Set far plane value");922 arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options] filename ..."); 923 arguments.getApplicationUsage()->addCommandLineOption("--far <number>", "Set far plane value"); 925 924 // if user request help write it out to cout. 926 925 if (arguments.read("-h") || arguments.read("--help")) … … 949 948 width = traits->width; 950 949 height = traits->height; 950 if (arguments.argc()<=1) 951 { 952 arguments.getApplicationUsage()->write(std::cout,osg::ApplicationUsage::COMMAND_LINE_OPTION); 953 return 1; 954 } 951 955 ref_ptr<Node> loadedModel = osgDB::readNodeFiles(arguments); 952 956 if (!loadedModel) { -
OpenSceneGraph/trunk/include/osg/FrameBufferObject
r11339 r11355 119 119 #endif 120 120 121 #ifndef GL_DEPTH_COMPONENT32F 122 #define GL_DEPTH_COMPONENT32F 0x8CAC 123 #endif 124 125 #ifndef GL_DEPTH_COMPONENT32F_NV 126 #define GL_DEPTH_COMPONENT32F_NV 0x8DAB 127 #endif 128 121 129 #ifndef GL_EXT_packed_depth_stencil 122 130 #define GL_EXT_packed_depth_stencil 1
