Added DisplaySettings::s/getNvOptimusEnablement() and OSG_NvOptimusEnablement env var control to control the setting of the NvOptimusEnablement variable
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14614 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -293,6 +293,11 @@ class OSG_EXPORT DisplaySettings : public osg::Referenced
|
||||
/** Get the hint of the profile mask to use in when creating graphic contexts.*/
|
||||
unsigned int getGLContextProfileMask() const { return _glContextProfileMask; }
|
||||
|
||||
/** Set the NvOptimusEnablement value. Default can be set using OSG_NvOptimusEnablement env var.*/
|
||||
void setNvOptimusEnablement(int value);
|
||||
/** Get the NvOptimusEnablement value. */
|
||||
int getNvOptimusEnablement() const;
|
||||
|
||||
|
||||
void setKeystoneHint(bool enabled) { _keystoneHint = enabled; }
|
||||
bool getKeystoneHint() const { return _keystoneHint; }
|
||||
|
||||
Reference in New Issue
Block a user