Added DisplaySettings::KeystoneHint flag that can be set via --keystone-on and --keystone-off command line parameters, and the OSG_KEYSTONE env var

This commit is contained in:
Robert Osfield
2013-05-10 17:59:07 +00:00
parent 5dd07e4d1c
commit 9402efe38e
3 changed files with 69 additions and 0 deletions

View File

@@ -285,6 +285,9 @@ class OSG_EXPORT DisplaySettings : public osg::Referenced
unsigned int getGLContextProfileMask() const { return _glContextProfileMask; }
void setKeystoneHint(bool enabled) { _keystoneHint = enabled; }
bool getKeystoneHint() const { return _keystoneHint; }
typedef std::vector<std::string> FileNames;
void setKeystoneFileNames(const FileNames& filenames) { _keystoneFileNames = filenames; }
FileNames& getKeystoneFileNames() { return _keystoneFileNames; }
@@ -363,6 +366,7 @@ class OSG_EXPORT DisplaySettings : public osg::Referenced
SwapMethod _swapMethod;
bool _keystoneHint;
FileNames _keystoneFileNames;
Objects _keystones;