Added DisplaySetting::s/getCompileContextHint() and use of this hint in osgViewer::Viewer/CompositeViewer.

Removed the CustomViewer in osgterrain example as the above now removes the need for it.
This commit is contained in:
Robert Osfield
2007-08-11 14:49:14 +00:00
parent 4cd437d7d4
commit d57a16e023
8 changed files with 93 additions and 65 deletions

View File

@@ -329,6 +329,16 @@ BEGIN_OBJECT_REFLECTOR(osg::DisplaySettings)
__bool__getMultiSamples,
"",
"");
I_Method1(void, setCompileContextsHint, IN, bool, useCompileContexts,
Properties::NON_VIRTUAL,
__void__setCompileContextsHint__bool,
"",
"");
I_Method0(bool, getCompileContextsHint,
Properties::NON_VIRTUAL,
__bool__getCompileContextsHint,
"",
"");
I_StaticMethod0(osg::DisplaySettings *, instance,
__DisplaySettings_P1__instance_S,
"Maintain a DisplaySettings singleton for objects to query at runtime. ",
@@ -339,6 +349,9 @@ BEGIN_OBJECT_REFLECTOR(osg::DisplaySettings)
I_SimpleProperty(bool, AlphaBuffer,
__bool__getAlphaBuffer,
0);
I_SimpleProperty(bool, CompileContextsHint,
__bool__getCompileContextsHint,
__void__setCompileContextsHint__bool);
I_SimpleProperty(bool, DepthBuffer,
__bool__getDepthBuffer,
__void__setDepthBuffer__bool);