From Farshid Lashkari, "The following patch adds a multisample option to the

osg::DisplaySettings class. OsgCameraGroup will now read the setting
from the DisplaySettings instead of hardcoding the value. I added the
following commandline option to be able to set the multisample value:

--samples <num>

One thing to note, OsgCameraGroup would previously check if the
computer is an SGI and set multisample to 4. I retained this check in
DisplaySettings to be backwards compatible."
This commit is contained in:
Robert Osfield
2006-03-13 21:29:17 +00:00
parent d50f2e3add
commit 2b61cf0a1e
4 changed files with 36 additions and 10 deletions

View File

@@ -102,6 +102,9 @@ BEGIN_OBJECT_REFLECTOR(osg::DisplaySettings)
I_Method0(bool, getAccumBuffer);
I_Method1(void, setMaxNumberOfGraphicsContexts, IN, unsigned int, num);
I_Method0(unsigned int, getMaxNumberOfGraphicsContexts);
I_Method1(void, setNumMultiSamples, IN, unsigned int, samples);
I_Method0(unsigned int, getNumMultiSamples);
I_Method0(bool, getMultiSamples);
I_ReadOnlyProperty(bool, AccumBuffer);
I_ReadOnlyProperty(bool, AlphaBuffer);
I_Property(bool, DepthBuffer);
@@ -116,6 +119,8 @@ BEGIN_OBJECT_REFLECTOR(osg::DisplaySettings)
I_ReadOnlyProperty(unsigned int, MinimumNumAccumRedBits);
I_Property(unsigned int, MinimumNumAlphaBits);
I_Property(unsigned int, MinimumNumStencilBits);
I_ReadOnlyProperty(bool, MultiSamples);
I_WriteOnlyProperty(unsigned int, NumMultiSamples);
I_Property(bool, RGB);
I_Property(float, ScreenDistance);
I_Property(float, ScreenHeight);