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) | |
Constructor that takes the different parameters that can be configured. | |
virtual | ~SoFullSceneAntialiasingParameters () |
bool | useHighQualityFilter () const |
Returns true if the high quality filter is requested. | |
int | getNumSamples () const |
Returns the requested number of samples. | |
int | getFilterMask () const |
Returns the requested combination of the different values of SoFullSceneAntialiasing::Filter. | |
virtual SoAntialiasingParameters * | copy () const |
Copy to a new instance. | |
Public Member Functions inherited from SoAntialiasingParameters | |
virtual | ~SoAntialiasingParameters () |
Default destructor. | |
Antialiasing parameters class for the FSAA algorithm.
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
Definition at line 50 of file SoFullSceneAntialiasingParameters.h.
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 |
|
inlinevirtual |
Copy to a new instance.
Implements SoAntialiasingParameters.
Definition at line 87 of file SoFullSceneAntialiasingParameters.h.
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.