From d9ab15bd4c15246ba7d858b790a74b6be9d5572b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 12 Dec 2010 09:58:45 +0000 Subject: [PATCH] From Wojciech Lewandowski, added docs on Swap Method env vars and command line options --- src/osg/DisplaySettings.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/osg/DisplaySettings.cpp b/src/osg/DisplaySettings.cpp index 40ae21134..ccfe9f1c3 100644 --- a/src/osg/DisplaySettings.cpp +++ b/src/osg/DisplaySettings.cpp @@ -279,6 +279,10 @@ static ApplicationUsageProxy DisplaySetting_e24(ApplicationUsage::ENVIRONMENTAL_ static ApplicationUsageProxy DisplaySetting_e25(ApplicationUsage::ENVIRONMENTAL_VARIABLE, "OSG_GL_CONTEXT_PROFILE_MASK ", "Set the hint for the GL context profile mask to use when creating contexts."); +static ApplicationUsageProxy DisplaySetting_e26(ApplicationUsage::ENVIRONMENTAL_VARIABLE, + "OSG_SWAP_METHOD ", + "DEFAULT | EXCHANGE | COPY | UNDEFINED. Select preferred swap method."); + void DisplaySettings::readEnvironmentalVariables() { @@ -582,6 +586,7 @@ void DisplaySettings::readCommandLine(ArgumentParser& arguments) arguments.getApplicationUsage()->addCommandLineOption("--gl-version ","Set the hint of which GL version to use when creating graphics contexts."); arguments.getApplicationUsage()->addCommandLineOption("--gl-flags ","Set the hint of which GL flags projfile mask to use when creating graphics contexts."); arguments.getApplicationUsage()->addCommandLineOption("--gl-profile-mask ","Set the hint of which GL context profile mask to use when creating graphics contexts."); + arguments.getApplicationUsage()->addCommandLineOption("--swap-method ","DEFAULT | EXCHANGE | COPY | UNDEFINED. Select preferred swap method."); } std::string str;