Antialiasing parameters class for the FSAA algorithm. More...
#include <Inventor/antialiasing/SoFullSceneAntialiasingParameters.h>
Public Member Functions | |
SoFullSceneAntialiasingParameters (const int numSamples, const bool useHQ, const int filterMask=SoFullSceneAntialiasing::ALL) | |
virtual | ~SoFullSceneAntialiasingParameters () |
bool | useHighQualityFilter () const |
int | getNumSamples () const |
int | getFilterMask () const |
virtual SoAntialiasingParameters * | copy () const |
This class provides the different parameters that can be set to configure the FSAA antialiasing algorithm. These objects are used with the setAntialiasing() method in SoSceneManager and some viewer classes (e.g. SoWinGLWidget).
Limitations
The high quality filter is available only on NVidia platforms and only if the extension GL_NV_multisample_filter_hint is available.
SoAccumulationAntialiasingParameters, SoFXAAParameters, SoFullSceneAntialiasing
SoFullSceneAntialiasingParameters::SoFullSceneAntialiasingParameters | ( | const int | numSamples, | |
const bool | useHQ, | |||
const int | filterMask = SoFullSceneAntialiasing::ALL | |||
) |
Constructor that takes the different parameters that can be configured.
numSamples | The number of samples we want to enable in the window's pixel format. | |
useHQ | Indicates if the high quality filter provided by NVidia should be enabled. | |
filterMask | Is a combination of SoFullSceneAntialiasing::Filter enum values to define the primitives affected by the FSAA. |
virtual SoFullSceneAntialiasingParameters::~SoFullSceneAntialiasingParameters | ( | ) | [virtual] |
virtual SoAntialiasingParameters* SoFullSceneAntialiasingParameters::copy | ( | ) | const [inline, virtual] |
Copy to a new instance.
Implements SoAntialiasingParameters.
int SoFullSceneAntialiasingParameters::getFilterMask | ( | ) | const |
Returns the requested combination of the different values of SoFullSceneAntialiasing::Filter.
int SoFullSceneAntialiasingParameters::getNumSamples | ( | ) | const |
Returns the requested number of samples.
The window's pixel format will have up to this number of samples. If the graphic device doesn't support this number of samples a lower number will be used.
bool SoFullSceneAntialiasingParameters::useHighQualityFilter | ( | ) | const |
Returns true if the high quality filter is requested.